database:
id | name 1 | aaa 2 | bbb 3 | ccc .. | ... 250| zz3 foreach ($datafromdb as $value){ echo $value->name(); }
this show me:
Look, I don't exactly know php but this is what I can think of:
var counter=0; foreach ($datafromdb as $value){ if (i%12==0) { echo ''; } echo $value->name()+''; if (i%12==0) { echo ''; } counter++; }
Hope this helps!