Need help to create HTML table with 2 columns.

From: Date: Thu, 23 Aug 2001 14:30:07 +0000
Subject: Need help to create HTML table with 2 columns.
Groups: php.general 
Request: Send a blank email to php-general+get-64089@lists.php.net to get a copy of this message
Hi All, I am trying to generate a table with two columns. Each column should print 2 fields named image_link and web_url. Have spent over week looking documentations and trying different coding but nothing is working. Any help will be greatly appreciated. <TABLE> <?php $query = "SELECT image_link, web_url FROM testdata"; $result = mysql_query ($query) or die ("Query Failed"); while ($row = mysql_fetch_object ($result)) { printf ("<tr><TD>%s<br>%s</TD> <TD>%s<br>%s</tr>\n", $row->image_link, $row->web_url,$row->image_link, $row->web_url); } ?> </TABLE> Regards, John Bass _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

« previous php.general (#64089) next »