blog, seo and ads

PHP Tutorials: Create a Search Engine (Part 3)


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.

Share and Enjoy:
  • services sprite PHP Tutorials: Create a Search Engine (Part 3)
  • services sprite PHP Tutorials: Create a Search Engine (Part 3)
  • services sprite PHP Tutorials: Create a Search Engine (Part 3)
  • services sprite PHP Tutorials: Create a Search Engine (Part 3)
  • services sprite PHP Tutorials: Create a Search Engine (Part 3)
  • services sprite PHP Tutorials: Create a Search Engine (Part 3)
  • services sprite PHP Tutorials: Create a Search Engine (Part 3)

Related Posts

23 comments Digg this

23 Comments so far

  1. lnorby06 February 18th, 2010 9:56 am

    For the author:

    $sql=mysql_query(“SELECT * FROM searchengine”);
    while (list($id, $title, $description, $url, $keywords)=mysql_fetch_row($sql))
    {
    //code…
    }

    This is faster than the one in the tutorial, because mysql_fetch_assoc() is slower than mysql_fetch_row() because of the associative array that creates. Moreover you don’t have to use an extra line ($keywords=$getrow['keywords']) for each variable.

  2. bodhi1985 February 18th, 2010 10:34 am

    Where is the tutorial explaining associative array?

  3. jasleenk86 February 18th, 2010 10:50 am

    Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:xampphtdocsxamppsearchenginesearch.php on line 37
    No result found.

  4. jasleenk86 February 18th, 2010 11:02 am

    Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:xampphtdocsxamppsearchenginesearch.php on line 37
    No result found. plz help me to sort this error

  5. mactop90 February 18th, 2010 11:18 am

    hey why when i type anything it it shows the phpacdemy and yahoo not google

  6. punxz18 February 18th, 2010 11:41 am

    Question: is this gonna work for one table only? what if i have multiple tables?

  7. punxz18 February 18th, 2010 12:09 pm

    check your parameter

  8. H3dQ February 18th, 2010 12:41 pm

    Warning: mysql_fetch_assoc() expects parameter 1 to be resource, boolean given in C:UsersRootxampphtdocssearch.php on line 21

    Huh?

  9. AnimationShorts1 February 18th, 2010 1:35 pm

    Good video tuts!

  10. mikedhane February 18th, 2010 1:47 pm

    how to we search more than one field. What if i wanted to search for someting in a state or city

  11. JamesRCoston February 18th, 2010 2:04 pm

    Midlandsbassline, are you on of those guys that trolls videos and finds things to moun about?

  12. TommyDean1 February 18th, 2010 2:05 pm

    try mysql_fetch_array($query)

  13. matrix001m February 18th, 2010 2:34 pm

    hiiiii …
    thanks i have created “Add to cart scriptt” but it was nt worked ..
    please help me out for this script..
    ?can u make a script of add to cart…

  14. harmor20 February 18th, 2010 3:25 pm

    Put the “explode” function above the while loop to cut down on page execution time.

  15. khuram855 February 18th, 2010 4:03 pm

    thanks

  16. Midlandsbassline February 18th, 2010 4:57 pm

    There is an error with your mysql string the SELECT * FROM …. that part

    you before you run the while loop do this

    if(!is_resource($get)){die(‘ERRO: SQL SYNTAX’);}

    // do while loop here

  17. Midlandsbassline February 18th, 2010 5:21 pm

    This is n ot easy dood, Its done with javascript/ DOM Events and an Xhtml Object, you need to have a php script that will just return the data need to populate the list and then you need the javascript to track what letters the user is inserting, as the user inserts one more letter than the javascript will tell the other file what the user is typing and return possible matches to the DOM / javascript code then use the result to populate a box under the input area !

  18. Midlandsbassline February 18th, 2010 5:49 pm

    Doo your shit lol atleast use mysql_real_escape_string so these young ones dont get hacked left right and center.. if you dont do security i suggest you learn it before u show tutorials.. and your phpBB tuts are putting all users at risk man…. learn the security before you carry on

  19. matrix001m February 18th, 2010 5:52 pm

    hiiii thk alex…
    can u make a search style like google
    if we type a letter in textbox automatically
    it can appear… means
    “a list will open when me type some thing ….
    please help me out for this…

  20. khuram855 February 18th, 2010 6:02 pm

    Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource

    what is that i do everything write but its says that why

  21. socomglitchmasta February 18th, 2010 6:33 pm

    I have created an ADD-ON to this script which allows users to add their own search terms. Please message me for the link!

  22. omanoman98 February 18th, 2010 7:29 pm

    Many thanks Alex for this lovely tut!

  23. chjustin69 February 18th, 2010 7:59 pm

    Thanks for another create series!!!

Leave a reply