אתה יכול גם פשוט להריץ עם while וכל ספירה של שלוש לעשות BR ולאפס..
זה יותר לוגי בעניי...
PHP קוד:
$q = "SELECT * FROM `table` WHERE 1";
$r = mysql_query($q);
$counter = 0;
while($i=mysql_feach_assoc($r)) {
echo $i['row'] . " ";
$counter++;
if($counter==3) {
echo "<br />\n";
$counter=0;
}
}