echo "<table border=1>";
echo "<tr>";
while($result = mysql_fetch_array($sql))
{
echo "<td><IMG SRC=\"$result[photo]\""></td>";
}
echo "</tr>";
echo "</table>";
so if there are 15 entries in the db, it gives me 15 cells in one row.
How can i limit the cells in a row to 4, and have it generate however many rows to display all.
I've been experimenting with for loops, but no luck.