Website search - Need Coding Directions

Discussion in 'PHP' started by zEron, Aug 27, 2009.

  1. #1
    I need some help with code .... I have found a site that uses a simular search as I would like to.

    However I am new to coding and have no idea how to create the code ... Yes I know I could pay someone. But

    1.) I am trying to search just like the site listed.
    2.) Come back with results.


    www.    cuar.     ca
    PHP:

    Please can anyone suggest what the code would look like ....
     
    zEron, Aug 27, 2009 IP
  2. kblessinggr

    kblessinggr Peon

    Messages:
    539
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Well the code would probably slightly big for here, but generally speaking they could be using a typical database, and the search function just calls a query to the database something perhaps like:

    
    SELECT value, fname, lname, province, id FROM claims WHERE lname LIKE 'ALastName%'
    
    Code (markup):
    (with some variations of cource depending on what was passed by the form, though they could also be using a FULLTEXT method on the database)

    A popular database used with PHP is MySQL, so I would read up on PHP+MySQL if you want to learn about database driven websites.
     
    kblessinggr, Aug 27, 2009 IP