I’m trying to return information from a MYSQL database using PHP with the following conditions:
mysql_query("SELECT name.name, type.type FROM style, name, type WHERE style.name=name.id AND style.type=type.id AND (style.model IS NULL *OR* style.make IS NULL)");
Is there a way to specify one of two conditions to be true, like an OR statement rather than AND?
You may take a look here: MySQL Reference for logical operators
What you looking for will be
ORorXOR.