Page 1 of 1

Want php code for sorting data

Posted: Fri Jul 25, 2008 6:30 am
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!

Re: Want php code for sorting data

Posted: Fri Jul 25, 2008 6:37 am
by Amit Rathi
If you are using database. You can sort data with database query;

Or you can sort data using php array method.

Re: Want php code for sorting data

Posted: Fri Jul 25, 2008 10:57 am
by coder500
Deleted up on request.

Re: Want php code for sorting data

Posted: Sat Jul 26, 2008 12:14 am
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! :)

Re: Want php code for sorting data

Posted: Sat Jul 26, 2008 3:45 am
by Stryks
Coder500 ... Using this forum to seed your own ... so not cool. :dubious: