help with sorting data on a table

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
andrew99
Forum Newbie
Posts: 7
Joined: Mon Dec 08, 2003 9:01 am

help with sorting data on a table

Post 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
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post 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
andrew99
Forum Newbie
Posts: 7
Joined: Mon Dec 08, 2003 9:01 am

Post by andrew99 »

like the second example for sure (alphabetical vertical)
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

Probably this topic will be of help:
viewtopic.php?t=14706&postdays=0&postorder=asc&start=15
andrew99
Forum Newbie
Posts: 7
Joined: Mon Dec 08, 2003 9:01 am

Post by andrew99 »

thanks a lot
it helped
Post Reply