davithedork Posted April 27, 2007 Share Posted April 27, 2007 hi, i'm creating a page that has pagination. but the data just gets listed on and on :'(. is it possible for a 5 data to go across in a single row, then break, and another 5 data across again, like in this image: thanks for your help. Link to comment https://forums.phpfreaks.com/topic/49014-sorting-data/ Share on other sites More sharing options...
per1os Posted April 27, 2007 Share Posted April 27, 2007 <?php $numImages = 6; for ($i=1;$i<=$numImages;$i++) { if (($i%5) == 0) print "<br />"; print '<img src="image.jpg" /> '; } ?> Something like that should suffice. Link to comment https://forums.phpfreaks.com/topic/49014-sorting-data/#findComment-240085 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.