I am trying to INSERT time which is in format "Tue, 14 Jan 2014 19:56:09 +0530"
using query
INSERT INTO monitor (Date, Name ) VALUES ('$Date','$Name') ";
mysql_query($query) or die ("query failed");
This query execute without any error but when I look into values inserted it was found that value of time in different other than what is in $Date
, value inserted is "0000-00-00 00:00:00"
other than "Tue, 14 Jan 2014 19:56:09 +0530"
. Is any their anything I am doing wrong.