records side by side using table??

admin

Administrator
Staff member
Hello,

have forgotten how to do following - any one can help?!

I want to display the records in a table 2 at a time across the page rather than 1 above the other as the following code does..

echo "<B>Your query found ".mysql_num_rows($result)." hit(s)</B><P><a href='http://www.phpbuilder.com/board/archive/index.php/shops.htm'><b>Another search?</b><p></a>";
echo "<TABLE BORDER='1' width=413 cellpadding='10'>\n";

while ($row = mysql_fetch_array($result)) {

echo "<tr><td>";
printf("<b>%s &nbsp;</b> <br> %s &nbsp; <br> %s &nbsp;<br> %s &nbsp;", $row["name"],$row["address"],$row["tel"],$row["type"]);
echo "</td>";
echo "</tr>";


}
echo "</TABLE>\n";
}

How to do it?!

Cheers

Geoff
 
Back
Top