I am still learning although I seem to be learning fast. But I am stuck on a date field. I have added a date field to the mysql database with type DATE, not sure this is correct.
What I want to do is when a record is created in the database the DATE field is completed with the date of the record was created.
This is what I have done but all the database shows is 0000-00-00.
// get the date
$recorded = date("Y-F-d");
echo $recorded ;
// the echo is so I can see what it is
// then insert $recorded into the date field in the database
$result = mysql_query ( "INSERT INTO users SET date = '$recorded' " ) ;
If I use YEAR as the type I get 2008 in the database which is correct.
But I want it to show the whole date dd/mm/yyyy.
Can anyone out there hep me please.
Thanks
Tuscan