Control the organization of data table by headers
View Single Post
05-13-2009, 07:29 PM
Join Date: Feb 2009
Location: New York
If you only want to do it the PHP way, well you would make each a link that references the page. So when a user clicks on the link, it re-posts the page and provides added data to your SQL query like ASC or DESC for example...
Since you clicked on the header, you can now change the color to show that this header is highlighted and clicked on...
The JS way though is a bit smoother because it doesn't have to reload the page, it just takes data that has already been outputted...
I'm not that very good at JS though so you'd have to get a response from the JS experts around here..
The Following User Says Thank You to allworknoplay For This Useful Post:
View Public Profile
Send a private message to allworknoplay
Find More Posts by allworknoplay