t, Ken
Cc: [EMAIL PROTECTED]; 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 ta
Shafiq Rehman wrote:
Hello,
Why not you use the javascript to sort any column on client side.
Because that might not sort all of the data.
If you only show 20 records per page, then that will only sort those 20
records (ie the records inside that page), it won't sort the other 1,000
records
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://pkf
Thanks for the tip!
This works great as I only need a single column sort :)
Ken Vandegrift
[EMAIL PROTECTED]
Web Administrator
Sharis Mgmt. Corp
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
Sent: Friday, July 07, 2006 10:01 AM
To: php-general@lists.php.net
Subj
If you're only sorting by one column at a time (not adding to a column sort
list) then you can do something like this:
$ascdesc = ($_GET['sortcol'] == 'colA' AND $_GET['ad'] == 'ASC') ? 'DESC' :
'ASC';
echo "ColA\n";
$ascdesc = ($_GET['sortcol'] == 'colB' AND $_GET['ad'] == 'ASC') ? 'DESC' :
'
5 matches
Mail list logo