title: MySql 'or' Operator not working
body: <p>I want to select the user from my database using email or username, my code is:</p>
  
  <pre><code>$sql = "SELECT * FROM `users` WHERE (`Email`='".$User."' OR `Username`='".$User."'') AND `Password`='".$Password."'";
  </code></pre>
  
  <p><strong>My Code Worked</strong></p>
  
  <p>Code:</p>
  
  <pre><code>$sql = "SELECT * FROM users WHERE (Email = '$User' or Username ='$User') AND Password='$Password'";
  </code></pre>