PHP Tutorials: Search Engine (Part 4/8)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
5,668
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 7, 2011

Creating a search engine for database content. Produces a list of results based on keywords of your data.

Official website
http://phpacademy.org

Support Forum
http://phpacademy.org/forum

Follow us on Twitter!
http://twitter.com/phpacademy

  • likes, 1 dislikes

Link to this comment:

Share to:
see all

All Comments (12)

Sign In or Sign Up now to post a comment!
  • guys

    just replace htmlentities() with htmlspecialchars()

  • To fix the undefined index problem. Use error_reporting(0);

  • Thanks for answer, but still I am having problem of undefined index even I included func.inc.php in index.php. And all undefined index pointing to 'search_results function'. Perhaps there is some other mistake and I couldn't figure out even though there is no error in code. Let me know or I can send you those files to check where mistake happening. Thanks!

  • @viqaramjadmir

    Had the same issue. I forgot to include function.inc.php in the index.php file. Hope this helps.

  • search_results($keywords)

    I am getting error message on search_result about undefined index while running in browser. Can anyone help on this search_results function?

  • it keeps telling me Warning: Missing argument 1 for search_results(), called in C:\xampp\htdocs\business\searc­h.php on line 40 and defined in C:\xampp\htdocs\business\func.­inc.php on line 6

    Notice: Undefined variable: search in C:\xampp\htdocs\business\func.­inc.php on line 13

    Array ( [0] => ) Your Search For hello returned no results

    what do i do?

  • In the regular expression at 3:10, it is necessary to use square brackets?

  • @vavadesigns In other words, I wasn't paying to close attention :p

  • @vavadesigns Oh wow Vava, I didn't realize he made a function. *Facepalm* XD sorry. I thought it was a function 'built-in' to PHP.

  • I never knew there was a function called 'Search_results'. That's kind of weird.thanks for the tut.

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more