Minor php issue
<p>In below code, the value of <code>date("m") is 10 i.e. October</code></p>

<p>the <code>$mame1[$i] in &lt;td&gt;&lt;/td&gt;</code> is printing October three times.</p>

<pre><code>&lt;?php $months = array("January","February", "March","April", "May", "June", "July", "August", "September", "October", "November", "December");
$mname1 = $months[date("m")-1];

for($i=0; $i&lt;date("m")-1; $i++){
 $mname1[$i];}
?&gt;


&lt;tr&gt;
    &lt;td colspan='4' style='border: 2px solid black;'&gt;
    &lt;div align="center"&gt;&lt;b&gt;&lt;u&gt;&lt;?=$mname1[$i]?&gt;
    &lt;?=$profile_stats['year']?&gt;&lt;/u&gt;&lt;/b&gt;    
    &lt;?=$newstats_alert?&gt;&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
</code></pre>

<p>What I want to achieve is print Series untill October ie. 10 as Jan | Feb | March |... |Sept |</p>

<p>Can anybody help me?</p>
