I have 2 links named city nd name. i want to work them as i click on name it gives gridview values order by name and if i click on city it gives gridview values order by city...what to do? plz help
I have query with anchor tag in php mysql?
Collapse
X
-
Tags: None
-
As JKing says.
Have the link call a javascript function which calls a file with server-side code which runs an sql query witch orders the results of your data according to the link that was clicked.
You can either call two separate files or one file with parameters to decide which order by to use.Comment
Comment