Member
Member
farhan   2009-06-20, 04:51
#1

I having a problem with my search. I know i probably made some small mistaken but i can't find it and someone can give me a hint that'll be great.

The site is http://www.bollywoodstop.com/ and when the search is empty or results are zero i get a error

Songs Results for
Notice: Undefined variable: searchwords in xxx/themes/default/search.php on line 25

Member
Member
sbillard   2009-06-22, 04:30
#2

You have fallen into code that expects a variable to exits ($searchwords) but you have not ececuted the code that initializes it. Perhaps the easiest thing to do is put $searchwords=''; at the beginning of the script. However, this may also be a symptom of a logic error in your changes, so you might want to figure out why you are try to use the variable when there is an empty search result.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.