Page 1 of 1
using "ORDER BY" mysql
Posted: Tue Mar 01, 2005 1:41 am
by Deaglex
I was wondering what the correct way to put an anchor ' href=""' in a html table to sort the DB data in each row by clicking on the link....
TY
Posted: Tue Mar 01, 2005 1:48 am
by n00b Saibot
first you should have the href link pass a var to the fetching script.
next you have to change your fetching code so that it automatically fetches records sorted according to the var field.
Posted: Tue Mar 01, 2005 1:49 am
by feyd
there's a thread linked to about this in the Useful Posts thread.
Posted: Tue Mar 01, 2005 1:49 am
by Deaglex
huh?
Posted: Tue Mar 01, 2005 2:27 am
by smpdawg
I posted something similar to this in another thread. Follow this link and look at the last post on the page, it should give you a starting point.
viewtopic.php?t=31062&start=0