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

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -