I have Month, Day and Year fields on my form. When I submit this form I
want to create a valid date from all three fields before inserting into
MYSQL table.
I tried following:
$dob=$Month."-".$Day."-".$Year;
$dob = strtotime($dob) ;
But it does not update my date field in the table.
I am novice in PHP, do you know where i am making a mistake.
want to create a valid date from all three fields before inserting into
MYSQL table.
I tried following:
$dob=$Month."-".$Day."-".$Year;
$dob = strtotime($dob) ;
But it does not update my date field in the table.
I am novice in PHP, do you know where i am making a mistake.
Comment