My $date
output is in the foreach loop
09/25/11, 02/13/11, 09/15/10, 06/11/10, 04/13/10, 04/13/10, 04/13/10, 09/24/09, 02/19/09, 12/21/08
My mysql query(PHP) is as follows
("INSERT INTO table_name(`field1`, `field2`,`date`) VALUES ('".$value1."','".$value2 ."','".$date."')");
Question: In my database all the dates stores as 0000-00-00 00:00:00
. But 4th date (06/11/10) is stored as 2006-11-10 00:00:00
.
I tried with date('Y-m-d H:i:s', $date);
but no help.
Note: My database field is datetime type. Any idea?