Very slick Richard.
>>$i = 0;
>>while ($myrow = mysql_fetch_array($sql)) {
>> if (++$i % 5 == 0) echo '<tr>';
>> ...
>>
>>
>>Note: if used repeatedly do not increment the $i again in the loop.
>>
>>HTH
>>Richard-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

