PHP: for loop and birthday date
<p>I have a little problem</p>

<p>birthday´s get stored as DATE in the MySQL database.</p>

<p>DATE is 00-00-00</p>

<p>and now when i make the select options, i did it with a for loop:</p>

<pre><code>&lt;?php
$month_names = array("januar", "februar", "marts", "april", "maj", "juni", "juli", "august", "september", "oktober", "november", "december");
for ($i=1; $i&lt;=12; $i++) {
    echo "&lt;option ";
    if ($i == $month) {
        echo "selected=\"selected\" ";
    }
    echo "value=\"$i\"&gt;", $month_names[$i-1], "&lt;/option&gt;\n";
}
?&gt; 
</code></pre>

<p>This works, but gives me 1,2,3,4,5,6,7,8,9,10,11,12 as values.</p>

<p>I need to have it like this 01, 02, 03, 04, 05, 06, 07, 08, 09, 10, 11, 12.</p>

<p>How can i do this?</p>
