I want to store the date value in a MySQL database.
I have one PHP page called A.phpthat has 3 inputs: d, m, y, where d = (1 ... 31), m =(1 ... 12), and y = (1970 to 2009).
Now in b.phpI collect these values, and I need to save them in my db.
My database has a field with a name dobthat has a date type.
How can I construct a variable of type date from d, m, yand store it in the database?
source
share