woops i did not finish that line:
If you imagine to walk through your code, with every step $i increases. If you start the second row,
then the counter is at 8 and will never be 7 again.
And some bad english:
Besides, your second print '<tr>' for every cell, which will break your table, and possibly other tables on your page.i mean to say that the second clause prints <tr> for every cell.
by the way, my proposal has less tests than the other solution you got, so i guess it is an itsy bit faster :)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php