RE: [PHP] Probably basic but seems advanced to me, PHP/SQL genera tion.
| From: | Non-HP-UnitedKingdom,ex2) | Date: | Thu, 28 Feb 2002 13:55:19 +0000 |
| Subject: | RE: [PHP] Probably basic but seems advanced to me, PHP/SQL genera tion. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-86600@lists.php.net to get a copy of this message | ||
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:bas@startpunt.cc]
Sent: Thursday, February 28, 2002 1:59 PM
To: DARCY,MATTHEW (Non-HP-UnitedKingdom,ex2); php-general@lists.php.net
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];
}
}