Hi, I know this is an easy thing, but I cant seem to get it.. What I want to do is echo 5 columns ( <td> ) and when 5 columns have been echoed I want to make a new line, so it would be like
$result - $result - $result - $result - $result (<tr>)
$result - $result - $result - $result - $result etc..
I have the code done but i cant get it to make a new line, please edit it and yea.. so it works lol.
<?
$db = mysql_pconnect("localhost", "user", "password");
@mysql_select_db(table) or die( "Unable to select database");
echo '<table border="1"><tr>';
$query="select * from foto order by id asc";
$result=mysql_query($query);
$i=0;
while ($row=mysql_fetch_array($result))
echo "<td>$row[id]</td>";
echo '</tr></table>';
?>
Thanks in advanced.