Page 1 of 1

help with sorting data on a table

Posted: Mon Dec 08, 2003 9:01 am
by andrew99
I need help ordering data on a table.
I have a db (mysql) with 50 records.
I need to show them on a table in two colums (25 records in each colum)
Since i start learning php a little while ago, i would appreciate any help.
I think of using arrays, but it is too confusing at the begging.

Thanks in advance

Posted: Mon Dec 08, 2003 9:08 am
by JayBird
how would the table look?

like this..

Code: Select all

record_1          record_2
record_3          record_4
record_5          record_6
record_7          record_8
...
or like this...

Code: Select all

record_1          record_5
record_2          record_6
record_3          record_7
record_4          record_8
...
Mark

Posted: Mon Dec 08, 2003 9:15 am
by andrew99
like the second example for sure (alphabetical vertical)

Posted: Mon Dec 08, 2003 5:10 pm
by Weirdan
Probably this topic will be of help:
viewtopic.php?t=14706&postdays=0&postorder=asc&start=15

Posted: Tue Dec 09, 2003 5:46 am
by andrew99
thanks a lot
it helped