I want to modify my code below so that the first record of information from my DB is displayed in the first cell of the first row of my table, the second record in the second cell of the first row, the third record in the the first cell of the second row of my table and so on
<?php
# insert_it.php
# include file
include ("Connections/test_holding_inc.php");
$sql="select * from slides";
$mysql_result=mysql_query($sql,$connection);
$num_rows=mysql_num_rows($mysql_result);
if ( $num_rows == 0 ) {
echo"<tr><td colspan =\"2\" align=\"center\"><font color=\"red\">Sorry there are no slides at present</font></td></tr>";
} else {
while ($row=mysql_fetch_array($mysql_result))
{
$name=$row["name"];
$url1=$row["url1"];
echo
"<tr align=\"center\"><td><A HREF = '$url1'> $name</A></td></tr>";
}}
# end else
mysql_close($connection);
?>