I want to publish search results as a Page in my PHP site.

Discussion in 'PHP' started by say2010, Apr 2, 2010.

  1. #1
    Hello friends i have a document search engine. People daily search on my site.

    each and every search comes with some results. I want to save those results in a page so that search engine can index that page. and Every search must be saved as a page and duplicate search must be omitted.

    I don't know how to do that. For example: Visit this site:
    http://www.askdiana.net/ 
    HTML:
    Please help me.
     
    say2010, Apr 2, 2010 IP
  2. canadianguy_001

    canadianguy_001 Peon

    Messages:
    97
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You will need to store recent searches in a MySQL database. This is a fairly simple task to do, and would be a great quick little project to dip your toes into some mysql
     
    canadianguy_001, Apr 2, 2010 IP
  3. Brandon.Add.On

    Brandon.Add.On Peon

    Messages:
    178
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Store each keyword in a MYSQL database. When a user searches, the script checks to see if the keyword is already inserted or not and displays the correct info. Now you can have a script to create a sitemap for every keyword ie iterating through the db and inserting the keyword into a user like example.com/search/$keyword, replacing the variable with the keyword. Then you can send the sitemap to the search engines.
     
    Brandon.Add.On, Apr 3, 2010 IP