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 </b> <br> %s <br> %s <br> %s ", $row["name"],$row["address"],$row["tel"],$row["type"]);
echo "</td>";
echo "</tr>";
}
echo "</TABLE>\n";
}
How to do it?!
Cheers
Geoff
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 </b> <br> %s <br> %s <br> %s ", $row["name"],$row["address"],$row["tel"],$row["type"]);
echo "</td>";
echo "</tr>";
}
echo "</TABLE>\n";
}
How to do it?!
Cheers
Geoff