I have query with anchor tag in php mysql?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Harshita Rana
    New Member
    • Dec 2010
    • 2

    I have query with anchor tag in php mysql?

    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
  • JKing
    Recognized Expert Top Contributor
    • Jun 2007
    • 1206

    #2
    Use an ORDER BY clause in your query?

    Without more information on your problem. I can't offer much else.

    Comment

    • rythmic
      New Member
      • Feb 2010
      • 29

      #3
      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

      Working...