Lets say I have 10 results in a mysql database... How do I get it to show 4 results per row...
E.g:
Row 1 | Row 2 | Row 3 | Row 4
Row 5 | Row 6 | Row 7 | Row 8
Row 9 | Row 10
How do I do this?
Ben
Showing myswl results in rows?
Moderator: General Moderators
- harrisonad
- Forum Contributor
- Posts: 288
- Joined: Fri Oct 15, 2004 4:58 am
- Location: Philippines
- Contact:
I answered this on old thread
viewtopic.php?t=35254
his problem is to display 3 data in every row, similar to yours.
viewtopic.php?t=35254
his problem is to display 3 data in every row, similar to yours.
i have asked this question already and had mine running and revised a few times, here is the link.
http://forums.devnetwork.net/viewtopic.php?t=35254
enjoy.
http://forums.devnetwork.net/viewtopic.php?t=35254
enjoy.
- harrisonad
- Forum Contributor
- Posts: 288
- Joined: Fri Oct 15, 2004 4:58 am
- Location: Philippines
- Contact:
solve your problem that will, however do as JCart suggested and use mod I would...
Code: Select all
if($numberofcolumn % $maxnumberyouwantperrow == 0)
echo "<tr>";
//etc...