Page 1 of 1
Showing myswl results in rows?
Posted: Wed Jul 20, 2005 9:07 pm
by Mr Tech
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
Posted: Wed Jul 20, 2005 9:15 pm
by harrisonad
I answered this on old thread
viewtopic.php?t=35254
his problem is to display 3 data in every row, similar to yours.
Posted: Wed Jul 20, 2005 9:17 pm
by neugent
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.

Posted: Wed Jul 20, 2005 9:18 pm
by neugent
hehe...ey harrisonad, i was just 2 minutes behind your post :p hehehehe
Posted: Wed Jul 20, 2005 9:21 pm
by Mr Tech
Awesome! Thanks guys!
Posted: Wed Jul 20, 2005 9:22 pm
by harrisonad
[language='philippines']lang hiya ka! pareho pa tayo ng link

[/language]
Posted: Wed Jul 20, 2005 9:24 pm
by neugent
in case you forgot, twas my post, and you were the one who answerd it before

Posted: Wed Jul 20, 2005 9:36 pm
by Burrito
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...