Oh yeah: I forgot:
*AFTER* the loop, you need to add another spurious .
You'll have an empty row with no TD's in it, and the browser won't even put
in a blank line or anything.
Just spew out an extra at the end and call it done.
--
WARNING [EMAIL PROTECTED] address is an endangered species -
""McShen"" <[EMAIL PROTECTED]> wrote in message
9h3lrv$dn$[EMAIL PROTECTED]">news:9h3lrv$dn$[EMAIL PROTECTED]...
> Hi
>
> I have a script which queries mySQL and outputs 32 links at once.
How 'bout this?
===
define("PER_ROW", 2);
$row = Array();
$in_row = 0;
ttp://www.newbienetwork.net/ciao.php
PHP, MySQL, PostgreSQL Tutorials, Code Snippets, and so much more
> -Original Message-
> From: McShen [mailto:[EMAIL PROTECTED]]
> Sent: Sunday, June 24, 2001 10:45 AM
> To: [EMAIL PROTECTED]
> Subject: Re: [PHP] ->>coding help
>
&
Jason, your scripts works prefectly in creating a table. But, It only ouputs
the first query from the databse. Others are not shown.
""Jason Lotito"" <[EMAIL PROTECTED]> wrote in message
000f01c0fc67$abfe3a90$72003bd0@genric">news:000f01c0fc67$abfe3a90$72003bd0@genric...
> This should work...
>
>
This should work...
\n";
for ($j = 0; $j < $num; $j++)
{
echo '\n';
for ($i = 0; $i <= 1; $i++)
{
@$result = mysql_fetch_array($result);
@$id = $result[id];
@$title = $result[title];
echo "
McShen wrote:
> Hi
>
> I have a script which queries mySQL and outputs 32 links at once. Here is my
> scipt
>
>
> $connection = mysql_connect("***","","");
> if ($connection==false)
>{
> echo mysql_errno().":".mysql_error()."";
> exit;
>}
>
> $end = $list + 16;
>
> $
6 matches
Mail list logo