Want php code for sorting data

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
php000developer
Forum Newbie
Posts: 4
Joined: Fri Jul 25, 2008 6:24 am

Want php code for sorting data

Post by php000developer »

Hello Friends, i need php codes for sorting the data in alphabetical order. Can anyone help me! I am making a database management website and i want that whenever i click on sorting option data should come in an ordered mannar or data should be recorded in an ordered way and whenever i fetch data, it should come in alphabetical order. Please help me!
Amit Rathi
Forum Newbie
Posts: 7
Joined: Fri Jul 25, 2008 6:17 am
Location: India

Re: Want php code for sorting data

Post by Amit Rathi »

If you are using database. You can sort data with database query;

Or you can sort data using php array method.
coder500
Forum Newbie
Posts: 20
Joined: Fri Jul 25, 2008 10:24 am
Location: Singapore

Re: Want php code for sorting data

Post by coder500 »

Deleted up on request.
Last edited by coder500 on Mon Jul 28, 2008 10:24 am, edited 1 time in total.
php000developer
Forum Newbie
Posts: 4
Joined: Fri Jul 25, 2008 6:24 am

Re: Want php code for sorting data

Post by php000developer »

coder500 wrote:You can use ORDER By statement.
See this thread : http://www.worth2read.org/forum/viewtopic.php?t=6
If you have any doubts let me know...
Thanks
All doubts are clear now. Thanks for this help and this thread. Thanks again! :)
User avatar
Stryks
Forum Regular
Posts: 746
Joined: Wed Jan 14, 2004 5:06 pm

Re: Want php code for sorting data

Post by Stryks »

Coder500 ... Using this forum to seed your own ... so not cool. :dubious:
Post Reply