samedi 24 octobre 2015

If Else only choosing first option [duplicate]

This question already has an answer here:

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