title: PHP if or statement not working
body: <p>We are trying to use the below piece of code</p>
  
  <pre><code>if (($_GET['1'] != "1") || ($_GET['1'] != "2")) {
  </code></pre>
  
  <p>When we try this no matter what value the variable has it will evaluate as true even when data is entered that is false. When we use </p>
  
  <pre><code>if (($_GET['1'] == "1") || ($_GET['1'] == "2")) {
  </code></pre>
  
  <p>and put in data that will make it return false it works correctly. We have reversed the way that the if statement goes just so we can get this working but i would like to know why this doesnt work, if it is something im doing wrong or a limitation within php with the or and the not equal operators</p>
  
  <p>Thanks</p>