using "ORDER BY" mysql

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Deaglex
Forum Newbie
Posts: 24
Joined: Thu Feb 24, 2005 10:15 am

using "ORDER BY" mysql

Post 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
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

there's a thread linked to about this in the Useful Posts thread.
Deaglex
Forum Newbie
Posts: 24
Joined: Thu Feb 24, 2005 10:15 am

Post by Deaglex »

huh?
User avatar
smpdawg
Forum Contributor
Posts: 292
Joined: Thu Jan 27, 2005 3:10 pm
Location: Houston, TX
Contact:

Post 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
Post Reply