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

Recommended Answers

All 2 Replies

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).

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/

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.