i hav a dropdown list of date 1-31
month january-december
year 2001-2009
i want to save it in musql database with dob field datatype date
$month=$_POST['month'];
$date=$_POST['date'];
$year=$_POST['year'];
$dob="$year/$month/$date";
i want to store this date in mysql table but it doesnt work date still remain 0000-00-00
insert into emp (dob) values('$dob')
month january-december
year 2001-2009
i want to save it in musql database with dob field datatype date
$month=$_POST['month'];
$date=$_POST['date'];
$year=$_POST['year'];
$dob="$year/$month/$date";
i want to store this date in mysql table but it doesnt work date still remain 0000-00-00
insert into emp (dob) values('$dob')
Comment