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

iphone - How do I make a UIPickerView in a UIActionSheet -

excel - Populate list via a bi-Condition -