Event period Php using db values
<p>Hi as the title says i am trying to create a event period and this is suppose to be the line of code to check if the requirements are met i seem to be having a problem with it.</p>

<pre><code>    if (date('m') == $pow['pmonth'] &amp;&amp; date('d')
     &gt;= $pow['psday'] &amp;&amp; date('d') &lt;= $pow['peday'] &amp;&amp; $allowed)
</code></pre>

<p>The <strong>$pow</strong> values are suppose to be retrieved in the database and compared i have checked
if there are existing values and there are, would appreciate any help on what iv'e done wrong.</p>

<p>EDIT: this is the sql statement.</p>

<pre><code>    $sql = "SELECT * FROM tbl_enroll WHERE student_id='$id'";
</code></pre>

<p>EDIT: the code should check if today is <strong>$pow['month']</strong> and is today between <strong>psday</strong>(period start day) and <strong>peday</strong> (period end day**.</p>
