HTML and PHP, editing birthday

Buttunfiniomo

New Member
If I store birthday as 1990-01-01When a user edits his profile, how do i show his current birthday?\[code\]<select name="ctl00$ctl00$cphContent$cphContent$cphContentLeft$DatePicker1$days" id="ctl00_ctl00_cphContent_cphContent_cphContentLeft_DatePicker1_days"> <option selected="selected" value="http://stackoverflow.com/questions/3642579/1">1</option> <option value="http://stackoverflow.com/questions/3642579/2">2</option> <option value="http://stackoverflow.com/questions/3642579/3">3</option> <option value="http://stackoverflow.com/questions/3642579/4">4</option> <option value="http://stackoverflow.com/questions/3642579/5">5</option> <option value="http://stackoverflow.com/questions/3642579/6">6</option> <option value="http://stackoverflow.com/questions/3642579/7">7</option> <option value="http://stackoverflow.com/questions/3642579/8">8</option> <option value="http://stackoverflow.com/questions/3642579/9">9</option> <option value="http://stackoverflow.com/questions/3642579/10">10</option> <option value="http://stackoverflow.com/questions/3642579/11">11</option> <option value="http://stackoverflow.com/questions/3642579/12">12</option> <option value="http://stackoverflow.com/questions/3642579/13">13</option> <option value="http://stackoverflow.com/questions/3642579/14">14</option> <option value="http://stackoverflow.com/questions/3642579/15">15</option> <option value="http://stackoverflow.com/questions/3642579/16">16</option> <option value="http://stackoverflow.com/questions/3642579/17">17</option> <option value="http://stackoverflow.com/questions/3642579/18">18</option> <option value="http://stackoverflow.com/questions/3642579/19">19</option> <option value="http://stackoverflow.com/questions/3642579/20">20</option> <option value="http://stackoverflow.com/questions/3642579/21">21</option> <option value="http://stackoverflow.com/questions/3642579/22">22</option> <option value="http://stackoverflow.com/questions/3642579/23">23</option> <option value="http://stackoverflow.com/questions/3642579/24">24</option> <option value="http://stackoverflow.com/questions/3642579/25">25</option> <option value="http://stackoverflow.com/questions/3642579/26">26</option> <option value="http://stackoverflow.com/questions/3642579/27">27</option> <option value="http://stackoverflow.com/questions/3642579/28">28</option> <option value="http://stackoverflow.com/questions/3642579/29">29</option> <option value="http://stackoverflow.com/questions/3642579/30">30</option> <option value="http://stackoverflow.com/questions/3642579/31">31</option></select><select name="ctl00$ctl00$cphContent$cphContent$cphContentLeft$DatePicker1$months" id="ctl00_ctl00_cphContent_cphContent_cphContentLeft_DatePicker1_months" style="width:100px;"> <option selected="selected" value="http://stackoverflow.com/questions/3642579/1">januar</option> <option value="http://stackoverflow.com/questions/3642579/2">februar</option> <option value="http://stackoverflow.com/questions/3642579/3">marts</option> <option value="http://stackoverflow.com/questions/3642579/4">april</option> <option value="http://stackoverflow.com/questions/3642579/5">maj</option> <option value="http://stackoverflow.com/questions/3642579/6">juni</option> <option value="http://stackoverflow.com/questions/3642579/7">juli</option> <option value="http://stackoverflow.com/questions/3642579/8">august</option> <option value="http://stackoverflow.com/questions/3642579/9">september</option> <option value="http://stackoverflow.com/questions/3642579/10">oktober</option> <option value="http://stackoverflow.com/questions/3642579/11">november</option> <option value="http://stackoverflow.com/questions/3642579/12">december</option></select><select name="ctl00$ctl00$cphContent$cphContent$cphContentLeft$DatePicker1$years" id="ctl00_ctl00_cphContent_cphContent_cphContentLeft_DatePicker1_years"> <option selected="selected" value="http://stackoverflow.com/questions/3642579/1950">1950</option> <option value="http://stackoverflow.com/questions/3642579/1951">1951</option> <option value="http://stackoverflow.com/questions/3642579/1952">1952</option> <option value="http://stackoverflow.com/questions/3642579/1953">1953</option> <option value="http://stackoverflow.com/questions/3642579/1954">1954</option> <option value="http://stackoverflow.com/questions/3642579/1955">1955</option> <option value="http://stackoverflow.com/questions/3642579/1956">1956</option> <option value="http://stackoverflow.com/questions/3642579/1957">1957</option> <option value="http://stackoverflow.com/questions/3642579/1958">1958</option> <option value="http://stackoverflow.com/questions/3642579/1959">1959</option> <option value="http://stackoverflow.com/questions/3642579/1960">1960</option> <option value="http://stackoverflow.com/questions/3642579/1961">1961</option> <option value="http://stackoverflow.com/questions/3642579/1962">1962</option> <option value="http://stackoverflow.com/questions/3642579/1963">1963</option> <option value="http://stackoverflow.com/questions/3642579/1964">1964</option> <option value="http://stackoverflow.com/questions/3642579/1965">1965</option> <option value="http://stackoverflow.com/questions/3642579/1966">1966</option> <option value="http://stackoverflow.com/questions/3642579/1967">1967</option> <option value="http://stackoverflow.com/questions/3642579/1968">1968</option> <option value="http://stackoverflow.com/questions/3642579/1969">1969</option> <option value="http://stackoverflow.com/questions/3642579/1970">1970</option> <option value="http://stackoverflow.com/questions/3642579/1971">1971</option> <option value="http://stackoverflow.com/questions/3642579/1972">1972</option> <option value="http://stackoverflow.com/questions/3642579/1973">1973</option> <option value="http://stackoverflow.com/questions/3642579/1974">1974</option> <option value="http://stackoverflow.com/questions/3642579/1975">1975</option> <option value="http://stackoverflow.com/questions/3642579/1976">1976</option> <option value="http://stackoverflow.com/questions/3642579/1977">1977</option> <option value="http://stackoverflow.com/questions/3642579/1978">1978</option> <option value="http://stackoverflow.com/questions/3642579/1979">1979</option> <option value="http://stackoverflow.com/questions/3642579/1980">1980</option> <option value="http://stackoverflow.com/questions/3642579/1981">1981</option> <option value="http://stackoverflow.com/questions/3642579/1982">1982</option> <option value="http://stackoverflow.com/questions/3642579/1983">1983</option> <option value="http://stackoverflow.com/questions/3642579/1984">1984</option> <option value="http://stackoverflow.com/questions/3642579/1985">1985</option> <option value="http://stackoverflow.com/questions/3642579/1986">1986</option> <option value="http://stackoverflow.com/questions/3642579/1987">1987</option> <option value="http://stackoverflow.com/questions/3642579/1988">1988</option> <option value="http://stackoverflow.com/questions/3642579/1989">1989</option> <option value="http://stackoverflow.com/questions/3642579/1990">1990</option> <option value="http://stackoverflow.com/questions/3642579/1991">1991</option> <option value="http://stackoverflow.com/questions/3642579/1992">1992</option> <option value="http://stackoverflow.com/questions/3642579/1993">1993</option> <option value="http://stackoverflow.com/questions/3642579/1994">1994</option> <option value="http://stackoverflow.com/questions/3642579/1995">1995</option></select>\[/code\]So it has the user's birthday as selected=.Its stored in the database and i get out the full birthday like this:\[code\]<?php echo $v["birthday"]; ?>\[/code\]
 
Back
Top