Hopefully someone can help me with this. I have a search form with several SELECT fields where the user can select an option "ALL", which should be a wildcard for that field. If it is selected for any of the fields, I get no results. Here is the line of code I am using to search the database.
$result = mysql_query("SELECT * FROM tablename WHERE year='$year' AND award='$award' AND state='$state' AND class='$class' ORDER BY award");
Any help would be greatly appreciated, I have already spent a few hours trying to figure this out.
Thanks in advance.