mktime function in php not working properly
<p>I am using code:</p>

<pre><code>$old_month = strtolower(date("m", mktime(date('H'), date('i'), date('s'), (date('m')-12),date('d'), date('Y'))));
$old_year = strtolower(date("Y", mktime(date('H'), date('i'), date('s'), (date('m')-12), date('d'), date('Y'))));


if ( $profile_stats['month'] &lt; $old_month &amp;&amp; $profile_stats['year'] == $old_year
|| $profile_stats['month'] == date('m') &amp;&amp; $profile_stats['year'] == date('Y') ) 
</code></pre>

<p>The If loop should take value of the last month..i.e. Its october now..so If should search for sept ie. 9</p>

<p>How can I achieve that.</p>

<p>Please suggest any solution.</p>
