create a page where you can sort by different fields...

Hello Experts!

How do you make a page where you can sort by different fields....?

Kinda like ebay's site where you can sort by "price low to high" and all that....

-neo    
LVL 6
neomage23Asked:
Who is Participating?
 
BatalfConnect With a Mentor Commented:
This is usually done on the server by ordering the data from the query based on the column you clicked on. You click on a column header. The server picks up which column you clicked on and query the database again but with a different "order by" clause. Then the server outputs the data in the new order.

It could also be done by Javascript as shown in this article:

http://webfx.eae.net/dhtml/sortabletable/sortabletable.html

Not sure how browser compatible it is.
0
 
neomage23Author Commented:
Thanks man. that help
0
All Courses

From novice to tech pro — start learning today.