the function "sort by" like in memberlist page...

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
rathu
Forum Newbie
Posts: 3
Joined: Thu Nov 09, 2006 3:59 am
Location: malaysia
Contact:

the function "sort by" like in memberlist page...

Post by rathu »

Can someone give the code on how to do the "sort by" function like in the memberlist page..
mickd
Forum Contributor
Posts: 397
Joined: Tue Jun 21, 2005 9:05 am
Location: Australia

Post by mickd »

You could look inside the phpBB forum's source code and see how they do it.

Generally i would i assume that they would order their querys with the ORDER BY command.

This site has a brief explaination of how it works.

http://www.w3schools.com/sql/sql_orderby.asp
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

There's a thread related to sorting a list linked from Useful Posts.
Post Reply