title: How can OR be used in for two different columns in php my
body: <p>Ok so what would i have to write to have an AND with an OR command for two differnt columns</p>
  
  <p>For example:
   If I mysql want to choose  a row that contains the country USA AND (the area code 561 or count West Palm Beach)</p>
  
  <p>Would it look like this?</p>
  
  <pre><code>$num_locations =mysql_query (SELECT * FROM Address
  WHERE Country='USA' AND (County='Palm Beach' OR 'area code' ='561');
  </code></pre>