PHP Tutorials: Create a Search Engine (Part 4/5)

Posted by: Admin  :  Category: Php

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

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.

Linux Cpanel shared hosting: 600 GB disk space, 6 TB bandwidth, free domain, unlimited databases and ftp accounts, web hosting cheap and pro at Hostony

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

  1. LambosWebs Says:

    Help – Warning: Invalid argument supplied for foreach() in /home/PRIVATE/public_html/search.php on line 26

  2. Tvvee2er Says:

    @madavalanche i fixt it 🙂

  3. madavalanche Says:

    @Tvvee2er did you solve this? im confused ^^

  4. Zuberguber105 Says:

    thanks for the tut!!!!

  5. EmmyTheScientist Says:

    i just got the ”You searched for php academy” with a line below, what wrong??
    PS: i’m a newbie.

  6. ahieuheo74 Says:

    for anyone who got 2 errors about undefine variable : Just need to declare $x and $construct as empty string before if(!button) you will get rid of it.

  7. Tvvee2er Says:

    you search for t est
    Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in D:xampphtdocsSvartatorgetsearchsearch.php on line 40
    No results Found
    whats wrong ? 🙁

  8. bikram528 Says:

    @lbbk

    same to me

  9. decoder135 Says:

    Can someone help? I had the same issue with PHP 5.3.5, so I pasted in the code, all the error messages went away. Now however, it comes up with no results found every time. I’m positive I entered in all of the tags correctly.

  10. igerlichannel Says:

    it says this Parse error: syntax error, unexpected T_FOREACH in line 22

  11. igerlichannel Says:

    igerli.com/Search%20engine/search.php

  12. igerlichannel Says:

    Ihave a problem with the foreach it says this

  13. SonyFan1260 Says:

    If you have PHP 5.3.5 on XAMPP, you will get this error:
    Unidentified Index in C:xampphtdocsexample.php on line 5

    Thats why I’m using webTaste (a freeware product I made), it comes with:
    MySQL 5.5.10
    PostgreSQL 9.9
    PHP 5.3.5
    Strawberry Perl 5.10.9 (Perl on Windows)
    ASP.NET
    and More!
    Like a control panel and a terminal (.exe)

    Latest Release Candidate: 4.5.1RC3
    Latest Stable Release: 4.5.0-1
    First Release: 0.10
    First Release Candidate: 0.10RC1

  14. adams2887 Says:

    @duarex2 im getting the problem when i serach it comes up without any results.. Do i replace that for the construct query??

  15. vohyndra Says:

    @socomglitchmasta
    hello do u still have the source of this code….. thanks……

  16. DavidRockin1 Says:

    @duarex2 Doesnt work.. It then doesnt display anything

  17. to123156 Says:

    @philmarlthegreat same!

  18. DaredevilSkateteam Says:

    im having a problem, i copied the code exactly like it is in the video but, when i search for 2 or more terms, it repeats the 0 results found message 1 time for each word, and when i use the enter key it only says i searched for google. How can i fix this?

  19. kylearnoldsomerset Says:

    I had some problem with this so i typed it in to my work and commented it out lol i will come back to it latter

    ps. you use /* */ to comment out

  20. SuperRorylewis Says:

    @philmarlthegreat $search_each = 0; while ($search_each < count($search_exploded)) { if ($search_each == 0) { $construct = "keywords LIKE '%" . $search_each . "%'"; } else { $construct .= " AND keywords LIKE '%" . $search_each . "%'"; } $search_each++; }

  21. icon0x1 Says:

    @philmarlthegreat it’s explode();

  22. philmarlthegreat Says:

    i get the following error how do i solve this one ?

    Fatal error: Call to undefined function exploded() in C:xampplitehtdocscoolmoviessearch enginesearch.php on line 26

  23. paolostk Says:

    were can I get codes in txt format ..Please help

  24. jos90 Says:

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

    what should i do?

  25. lachelleflockfxc Says:

    Do you need to marry ltin women**rockmycity.info**

Leave a Reply

*