我输入了“日期”.. 我想像这样插入日期:dd/mm/yyy 不喜欢这样:yyy/md/dd 我可以做谁?
它是我的代码:
HTML:
<label for="date">birthdate: </label>
<input type="date" name="date" /><br />
php:
$_POST['date'] = stripslashes($_POST['date']);
$date = mysql_real_escape_string($_POST['date']);
if(mysql_query('insert into users(id, username, password, email, avatar, date, signup_date) values ('.$id.', "'.$username.'", "'.$password.'", "'.$email.'", "'.$avatar.'", "'.$date.'", "'.time().'")'))
还有……其他的东西,我可以把日期改成年龄吗?