Home

PHP Tutorials: Create a Search Engine (Part 5)

Create a search engine for any purpose. This search engine can be implemented anywhere to search your website content, or to search pages on the web.

Tagged with: , , , , , , , , , , , , , , , , , , , , , , , ,

Share this:

Read also:


25 Responses to “PHP Tutorials: Create a Search Engine (Part 5)”

  1. IDaRsHaNI Says:

    thanks great tutorial 5* subbed

  2. Hitman73094 Says:

    can you explain that a little better, maybe showing how it is written with the other stuff

  3. MrGrimreaper1995 Says:

    hi please has eny one got the file(S) because i cant get it to work please help me please please please can you help me

  4. biasa199 Says:

    Thank you so much!!!

  5. biasa199 Says:

    thanks!!! it works!!! a sample is at

    dayo(.)tk

  6. gm3dgames Says:

    You don’t need to create so many LIKE statements.
    $query = mysql_query(“SELECT * FROM search WHERE Keywords LIKE ‘%$str%’”);
    that works fine, all you need is the search string to be entered into like, since it will go: Ok so in this string is test and in the database i see a test string so that must be output

  7. gm3dgames Says:

    @gm3dgames
    you dont need to explode the input string at all

  8. biasa199 Says:

    @MrGrimreaper1995 i can message me…..

  9. MrGrimreaper1995 Says:

    @biasa199 yeah have you got the flies because when i do the same it never works

  10. doniask Says:

    GOOD JOB. GREAT TUTORIAL..

  11. SeverinDK Says:

    Amazing.. Really helped me a lot.. Thank you very much :-)

  12. xpensador1x Says:

    thank you very much for your good work!

  13. BlakeReynolds09 Says:

    Excellent work, thanks very much :-)

  14. xxXXCompHelpXXxx Says:

    it says i have a error on lin 42 but it looks just like yours other thn that it works great!

  15. Hug0101 Says:

    I was just wondering.. For it to search the web, do we need every single URL, Name, Description, etc, that we want displayed?

  16. TooColdKris Says:

    Great tutorial!

    To all you people leaving comments saying “this doesnt work” – your not doing it right. Quit crying because you fail to understand the concept of how this all comes together. Maybe you should stick to HTML and just quit crying. Maybe in a perfect world you could just follow along and have a fully functional search engine, but it doesnt work that way for anybody. thee is always debugging and you need to be able to figure it out, or pay someone to do it for you. Jesus

  17. AshleyMcGowan1 Says:

    when i save it as (.php) it dose somthing difrent in each internet browser but not what its ment to so i saved it as (.html) the index.html works perfectly but the search.html dosent show anything just a blank screen is there any way of moderfying it for html because i think it would be easyer.

    i find it anoying because i already knew the index page i dont know how to get the databasey type bit

  18. klief2000 Says:

    nice tutorial alex, by the way if i want to search 4 or 3 columns in my database
    (e.i i have my table named tblemployee where there are 10 columns in there but i want to search for the 4 columns as a keyword, the 4 columns is “FirstName,LastName,MiddleName,OfficeName” ) is it possible.. ? newbie here! ;)

    thanks

  19. theboss3681 Says:

    Hey great tutorial… everything works great but at the top of the searches found it still has no result found no result found over and over again. does anyone know a reason that that might be happening???

  20. therealmaster101 Says:

    How can you add an internal search engine so that it would search only inside the my own web?

  21. therealmaster101 Says:

    How can you add an internal search engine so that it would search only inside the my own web?

  22. Hacker278 Says:

    Thank you! This is awesome. Subscribed, rated and yeah, commented… :]

  23. rsmabm Says:

    hey i just found a more professional way of doing it ! thanks

  24. The911MnM Says:

    can you please make a video of how to make spider (a thing that gets all of the websites name in the world). Thanks

    P.S. You are the best

  25. pr0hacker1 Says:

    i have this error Parse error: syntax error, unexpected $end in D:\xampp\htdocs\search.php on line 67 …. 67 is my last line ?>