helped need on how to generate latest searches links

Discussion in 'PHP' started by blankboxes, May 15, 2009.

  1. #1
    hi, i'm wanting something for my site http://bathtab.co.uk which would display the last few searches linked from the homepage. i've heaard it can be done using just php, but i have no idea. so please help, thank you guys.
     
    blankboxes, May 15, 2009 IP
  2. scottlpool2003

    scottlpool2003 Well-Known Member

    Messages:
    1,708
    Likes Received:
    49
    Best Answers:
    9
    Trophy Points:
    150
    #2
    On your search page:

    To display:

     
    scottlpool2003, May 15, 2009 IP
  3. scottlpool2003

    scottlpool2003 Well-Known Member

    Messages:
    1,708
    Likes Received:
    49
    Best Answers:
    9
    Trophy Points:
    150
    #3
    Sorry forget to mention... you will need to change variables to your own such as "q" may be "s" or whatever it is you use and:

    needs to be however you want to display it... it will display like this:

    SEARCH1
    SEARCH2
    SEARCH3
    SEARCH4
     
    scottlpool2003, May 15, 2009 IP
  4. blankboxes

    blankboxes Banned

    Messages:
    278
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    hi there scott, thanks a lot for this, but is there a way of doing it without the database as i lack the know how? thanks again
     
    blankboxes, May 15, 2009 IP
  5. scottlpool2003

    scottlpool2003 Well-Known Member

    Messages:
    1,708
    Likes Received:
    49
    Best Answers:
    9
    Trophy Points:
    150
    #5
    Well your search works from the database, so you need to insert the search into the database and then re-select it. I can do it for you if you like? You can see mine working on the movie site in my sig. It's in the footer. Sorry I'm not advertising just showing you how it works.
     
    scottlpool2003, May 16, 2009 IP