I'm a neewbie to php and I managed to make a search engine with keywords, but when I want the engine to search from a list menu instead of keywords I get some errors, could someone please explain me what I'm doing wrong ? here is some of the code:
if (($country == "") || ($country == " "))
{
print ("You have to choose a country to search in");
exit;
}
if (($country <> "") || ($country <> " "))
$category_query = "SELECT * FROM os_person WHERE (person_country like \"$country%\") AND (person_army like \"$army\") ";
Question
ampersand
I'm a neewbie to php and I managed to make a search engine with keywords, but when I want the engine to search from a list menu instead of keywords I get some errors, could someone please explain me what I'm doing wrong ? here is some of the code:
if (($country == "") || ($country == " ")) { print ("You have to choose a country to search in"); exit; } if (($country <> "") || ($country <> " ")) $category_query = "SELECT * FROM os_person WHERE (person_country like \"$country%\") AND (person_army like \"$army\") ";Remember: I'm a neewbie :p :) :) :)
Thanks in advance
Link to comment
Share on other sites
3 answers to this question
Recommended Posts