RE: [PHP] RE: [PHP-WIN] Dynamic HTML table sort with PHP

From: Date: Mon, 10 Jul 2006 18:30:08 +0000
Subject: RE: [PHP] RE: [PHP-WIN] Dynamic HTML table sort with PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-239267@lists.php.net to get a copy of this message
Thanks for the reply - I will definitely look at the link you provided! I currently did get this working smoothly in pure PHP, but this obviously creates more overhead and a query is run on the DB everytime a column is clicked to get the sorted data back. This is for an internal app. that likely will not make extensive use of the sort though. Thanks! Ken Vandegrift kvandegrift@sharis.com <mailto:kvandegrift@sharis.com> Web Administrator Sharis Mgmt. Corp ________________________________ From: Shafiq Rehman [mailto:rehmanms@gmail.com] Sent: Sunday, July 09, 2006 10:09 PM To: Vandegrift, Ken Cc: tg-php@gryffyndevelopment.com; php-general@lists.php.net Subject: Re: [PHP] RE: [PHP-WIN] Dynamic HTML table sort with PHP Hello, Why not you use the javascript to sort any column on client side. http://www.kryogenix.org/code/browser/sorttable/ 1. include the js file in your page 2. give your table an id 3. put your table in the class the code looks for. That's it. Sortable clientside tables! Example: http://pkfinance.info/analysis/ Hope this will help! Regards Shafiq Rehman Sr. Web Engineer http://www.phpgurru.com

« previous php.general (#239267) next »