title: php logical 'and' not logical. (what am I missing here)
body: <p>Given the following</p>
  
  <pre><code>expire date-&gt; 2014-10-14 notify date-&gt; 2014-10-06 current date-&gt; 2014-10-08 Fine 
  expire date-&gt; 2014-10-07 notify date-&gt; 2014-10-06 current date-&gt; 2014-10-08 Expired 
  expire date-&gt; 2014-10-11 notify date-&gt; 2014-10-06 current date-&gt; 2014-10-08 Fine 
  expire date-&gt; 2014-10-05 notify date-&gt; 2014-10-06 current date-&gt; 2014-10-08 Expired 
  </code></pre>
  
  <p>and the code</p>
  
  <pre><code>FOR loop (each row)
      if ($expire date &lt; $current_date) {
          echo "Expired &lt;BR/&gt;";
      } elseif (($expire date &gt;= $notify_date) &amp;&amp; ($expire date &lt;= $current_date)) {
          echo "Warning &lt;BR/&gt;";
      } elseif ($expire date &gt; $notify_date) {
          echo "Fine &lt;BR/&gt;";
      }
  END FOR
  </code></pre>
  
  <p>Why is the result<br>
  Fine<br>
  Expired<br>
  Fine<br>
  Expired</p>
  
  <p>Why is <code>expire date  -&gt;  2014-10-07</code> not printing <code>Warning</code>?</p>