anyway...i have a table, and when you click on one of the table headings for instance "Player" i want it to ORDER BY player or "levels" i want it to display who has the most levels first in decending order or vice versa...i know i can do that in the sql query by ORDER BY... but how can i make a link do that?
order by
Moderator: General Moderators
-
SidewinderX
- Forum Contributor
- Posts: 407
- Joined: Fri Jul 16, 2004 9:04 pm
- Location: NY
order by
ok i believe this will be my last question and i will finally be done with my project!!! WOOT!!!
anyway...i have a table, and when you click on one of the table headings for instance "Player" i want it to ORDER BY player or "levels" i want it to display who has the most levels first in decending order or vice versa...i know i can do that in the sql query by ORDER BY... but how can i make a link do that?
anyway...i have a table, and when you click on one of the table headings for instance "Player" i want it to ORDER BY player or "levels" i want it to display who has the most levels first in decending order or vice versa...i know i can do that in the sql query by ORDER BY... but how can i make a link do that?
- protokol
- Forum Contributor
- Posts: 353
- Joined: Fri Jun 21, 2002 7:00 pm
- Location: Cleveland, OH
- Contact:
An example would be this type of link:
Code: Select all
<a href="person.php?sort=age&order=desc">Sort By Age, Descending</a>