how to use Jump menu to sort my search result

Discussion in 'PHP' started by adsegzy, Oct 26, 2010.

  1. #1
    Am having a website where i need to retrieve record from the database. once the page loads the record will be displayed according to the ID (the primary key) descending order, but if the visitor select DATE from the jump menu drop-down, the record should be sorted by the date, if the visitor select NEW TO OLD from the jump menu drop-down the record should be sorted from the latest to the old, if the visitor select PRICE from the jump menu drop-down, the record should be sorted by the price, etc pls how do i do this?
     
    adsegzy, Oct 26, 2010 IP
  2. osmasters

    osmasters Well-Known Member

    Messages:
    453
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    100
    #2
    osmasters, Oct 26, 2010 IP