PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
echo "<table>";
echo "<tr>";
$counter = 0;
while ( stuff to display)
{
// start a new row
if ($counter == 5)
{
echo "</tr><tr>";
}
echo "<td> stuff ... </td>";
// add 1 to counter, or go back to 1
$counter = ($counter + 1) % 5;
}
// need to fill up last row with empty columns
while ($counter < 5)
{
echo "<td></td>";
++$counter;
}
// close row and table
echo "</tr>";
echo "</table>";
I don't remember how that ended up in my sig anymore..
I've worked all those hours overhere and only earned $25 :p Compare that to wages mentionned in the Enterprise threads :p If i really did it for the money i would probably have to change my strategy
timvw wrote:I don't remember how that ended up in my sig anymore..
I've worked all those hours overhere and only earned $25 :p Compare that to wages mentionned in the Enterprise threads :p If i really did it for the money i would probably have to change my strategy