On 23-May-2004 Russell P Jones wrote: > I just want to print out a table from mySQL. Thats it. into an html > table. > > Column 1 | Col 2 | Col 3 > ------------------------- > Val 1 | val 2 | val 3 > Val 4 | val 5 | val 6 > > > any ideas on how to do this? >
if ($res = mysql_query($qry)) { echo '<table>'; while ($row = mysql_fetch_array($res) echo '<tr><td>' .implode('</td><td>', $row) .'</td></tr>'; echo '</table>'; } Regards, -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php