Site search engine for mysql database

Discussion in 'MySQL' started by jc@ukzone.com, Jul 19, 2008.

  1. #1
    I have built a web site using php and mysql.
    I currently holds around 3000 products with short description, long description, price, etc...

    I need to setup a search facility so a visitor can search the database and then display all the details of that product.

    Is there a script that I can download, or can somebody start me off in the right direction.

    Thanks

    John C
     
    jc@ukzone.com, Jul 19, 2008 IP
  2. farley

    farley Peon

    Messages:
    88
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Google Search does it beautifully, but starts about $100 a year.

    For free roll-your-own solution, check this out:

    "Using PHP to search a MySQL database and return paged results"
    http://www.designplace.org/scripts.php?page=1&c_id=25

    Their tutorial looks pretty clean and adaptable.
     
    farley, Jul 20, 2008 IP
  3. spyrit

    spyrit Well-Known Member

    Messages:
    1,788
    Likes Received:
    94
    Best Answers:
    0
    Trophy Points:
    150
    #3
    it's not too hard to build your own, especially on a small database like that. I suggest you take a little time to read the w3schools tuturial which is great: http://www.w3schools.com/sql/default.asp and you will be able to do this on your own in a few days.
     
    spyrit, Jul 22, 2008 IP
  4. awatson

    awatson Active Member

    Messages:
    112
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4
    Another option would be to use google custom search to run a search just on your site - you won't have control over how the results look, etc - but it's an option.
     
    awatson, Jul 22, 2008 IP
  5. lv211

    lv211 Peon

    Messages:
    168
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Will that work if your pages aren't in google's index?
     
    lv211, Jul 23, 2008 IP
  6. david_t

    david_t Member

    Messages:
    74
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    45
    #6
    Nope, of course it wont work. :)
     
    david_t, Jul 26, 2008 IP