You may want to also try a javascript solution

See http://www.kryogenix.org/code/browser/sorttable/ for an example.

Luis


-----Original Message-----
From: Tommi Virtanen [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 02, 2003 8:30 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Simple table sorting


Hi!

I have simple table like:

name                    department
[data: first name]      [data: dep. no]
[data: second name]     [data: dep. no]

Now I have only sorting which sorts using ORDER BY name. How I
make header name / department active link, which I can change sorting
order Department and then back to Name?

regards,

gustavus

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to