954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

sorting PHP results with jQuery?

I am wondering if it is possible and how I would go about doing it if I wanted to use jQuery to sort with my PHP results on my page, does jQuery handle that?

thanks for any advice

justinmyoung
Junior Poster
133 posts since Mar 2008
Reputation Points: 22
Solved Threads: 1
 

Yes, you have two ways to achieve this. 1) Using server-side query with Ajax+PHP or Pure PHP, clicking on a table header cell will reassemble the query again changing ORDER BY. 2) Utilizing a jQuery plugin, there's a very good one, made by Christian Bach (tablesorter).

martin5211
Posting Whiz in Training
271 posts since Aug 2007
Reputation Points: 52
Solved Threads: 23
 

yes...
jQuery is a JavaScript library that takes this motto to heart: Writing JavaScript code should be fun. jQuery achieves this goal by taking common, repetitive, tasks, stripping out all the unnecessary markup, and leaving them short, smart and understandable

you can get them here:
http://jquery.com/

Shanti C
Posting Virtuoso
1,642 posts since Jul 2008
Reputation Points: 137
Solved Threads: 162
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You