MySQL -PHP insert DATETIME -
Anyone can please guide me how to insert ITETEM in the IISL database through PHP script.
$ dates = date ('Ymd H: i: s', '2010-10-12 15:09:00'); $ Query = "Insert TimeTable Time ('$ Dates')";
Thank you ..
for the date ( ) As a second argument, the job
function will require you to pass a timestamp.
$ dates = date ('Ymd H: i: s', strtotime ('2010-10-12 15: 09:00'));
But you have already already done your time in a good form:
$ dates = '2010-10-12 15:09 : 00 ';
Comments
Post a Comment