Greetings from Rio de Janeiro, Brazil!
I cannot understand this:
$date = '14-01-2006';
$fomatted = date('Y-m-d', strtotime($date));
How do I put input from the form (field names: day, month, year)
in $date, that is, the variables $year, $month and $day?
Regarding the second option:
Where do I put (date) precisely?
I cannot also understand this:
VALUES (DATE_FORMAT($date, '%Y-%m-%d'))
Where do I put it?
Thanks for your help.