I'm trying to search for matches in a database with more than one condition and getting errors. With a single condition it works fine. Here's the code:
$link = mysql_connect($host, $user, $password);
$query = "SELECT * FROM houses WHERE city='$city', mls_number='$mlsNumber'";
$result = mysql_db_query($DBName, $query, $link);
while ($row = mysql_fetch_array($result)) {
echo "<B>$row[mls_number]</B><BR>\n";
echo "<B>$row[type]</B><BR>\n";
echo "<B>$row[address]</B><BR>\n";
echo "<B>$row[city]</B><BR>\n";
echo "<B>$row[state]</B><BR><HR>\n";
}