I want to store a date value in a MySQL database.
I have one PHP page called A.php
that has 3 inputs: d
, m
, y
, where d = (1 ... 31)
, m =(1 ... 12)
and y = (1970 to 2009)
.
Now in b.php
I collect this values and I need to store in my db.
My DB has a field called dob
which is of date type.
How can I construct a variable of type date from d
, m
, y
and store it in the DB?