save datetime in mysql using php -


I have the table in mysql database, which is the datetime with the datatype field

From time to time, I use "now ()" for this minute, but this does not work,

It only saves in 000000000000 database is.

php , then the correct format is:

  date ("Ymd H : I: s) "post-text" itemprop = "text"> 

");

update: minutes are expressed as i not m


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -