Tables
|
|
|
|
?>
</table>
<?
$b = 113 ; //numbers to count for $i = 0; // incrementor $z = 4; // how much cols ? ?> <table>
<?
while($i < $b)
{
if($i == 0 || $i == $a)
{
echo "<tr>";
$a = $a + $z; // the beginning ist always $a + cols per row or zero
$e = $a - 1; // the end ist always $a - 1 ;
if ($e > $b) // if the end ist geater then our count
{
$e = $b - 1; //we make $b - 1 and thats the end tag
}
}
echo "<td> ".$i." </td>";
if ($i == $e)
{
echo "</tr>";
}
$i++;
} ?> </table>
<?
|
|
|
Usage Example
|
|
|
Rate This Script
|
|
|
|