View Full Version : MySQL "AND" statement

Dr Small
December 24th, 2008, 05:09 AM
I can't think of what this statement is called to find and documentation on it, to learn how to use it. So I am asking if anyone knows the proper term for the MySQL "AND" statement.

Basically, I need to learn how to use it properly, but I can't find any documentation on it, since the word is "and"...

Any clues would be appreciated.

December 24th, 2008, 05:21 AM
Well, if you want a MySQL query to meet more than one condition, you would use AND:

$q = mysql_query("SELECT `name` FROM `population` WHERE `location` = '".$location."' AND `language` = '".$language."'");