20i Domains

Best Way To Code Searching for Individual Pages on a Site in PHP

Discussion in 'Scripts and Coding' started by accelerator, Jul 25, 2015.

Thread Status:
Not open for further replies.
  1. accelerator United Kingdom

    accelerator Well-Known Member

    Joined:
    Apr 2005
    Posts:
    7,463
    Likes Received:
    114
    Hi Guys

    If I have a large site where I want to create a search that will allow users to search for pages, what is the best way to do this in PHP. E.g. a user is looking for a page on Dishwashers, so I want it to return pages related to dishwashers.

    Is it best to put all my page names in a database, or is there an easier way? I guess I could either index my whole site and use a search engine type search to return results, or I could create a custom database of my page names. Let me know what you think works best.

    Many thanks
     
  2. Domain Forum

    Acorn Domains Elite Member

    Joined:
    1999
    Messages:
    Many
    Likes Received:
    Lots
    articles.co.uk
     
  3. Edwin

    Edwin Well-Known Member

    Joined:
    Apr 2005
    Posts:
    9,954
    Likes Received:
    596
  4. accelerator United Kingdom

    accelerator Well-Known Member

    Joined:
    Apr 2005
    Posts:
    7,463
    Likes Received:
    114
    Thanks Edwin, that is a strong option. I've used this before on one of my sites and it is a nice solution.
     
Thread Status:
Not open for further replies.