try this then
<? # For loop that prints out a table
echo "<table border=1><tr>";
for($i=0; $i<100; $i++) { # Loops through numbers from 0 to 100
if($i%20==0) { # Breaks of table rows after 20 cells
echo "<td>$i</td></tr><tr>";
}
else {
echo "<td>$i</td>"; # Prints out the result
}
}
echo "</table>";
?>
That works for me, if it does not for you, then I have no idea.
edit:
Actually this code would probable be better
<? # For loop that prints out a table
echo "<table border=1><tr>";
for($i=0; $i<100; $i++) { # Loops through numbers from 0 to 100
echo "<td>$i</td>"; # Prints out the result
if($i%20==0) { # Breaks of table rows after 20 cells
echo "</tr><tr>";
}
}
echo "</table>";
?>