This question already has an answer here:
- The 3 different equals 8 answers
I am trying to set up an If Else statement which decides which MYSQL query to use depending on the values submitted in a form.
The problem i am having is that know matter what values I send in the form, even if they are not "ALL" only the first query ever gets called.
Here is my code
if($department = 'ALL' && $property_type = 'ALL')
} elseif ($department = 'ALL'){
Aucun commentaire:
Enregistrer un commentaire