Hi Baz,

Thanks for mailing back, would you care to explain this a little more so I
understand whats going on and how to use it

I can see that you are fetching the results of select * from - into and
array. and while there is records in the array you are echoing data, but I
am not sure on whats going on, and how to generate the table from these
results.

thanks, 

Matt.


-----Original Message-----
From: Bas Jobsen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 28, 2002 1:59 PM
To: DARCY,MATTHEW (Non-HP-UnitedKingdom,ex2); [EMAIL PROTECTED]
Subject: Re: [PHP] Probably basic but seems advanced to me, PHP/SQL
generation.


while ($row=mysql_fetch_row($result))
{
echo "1 $row[0]"
for($x=1; $x<count($row); $x++) 
if(!empty($row[$x])) 
{
echo $x+1;
echo " ".$row[$x];
}
}


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to