Added: 9 months ago
From: phpacademy
Views: 5,429
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (11)

Sign In or Sign Up now to post a comment!
  • To fix the undefined index problem. Use error_reporting(0);

  • 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?

  • @viqaramjadmir

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

  • 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!

  • 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.

  • would anyone like a bot powered we search engine

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