php - How to set to database current date time in this form? -


the code working can't find code set date&time plz here code work in way?

 mysql_query("insert comments set name='$name', fb='$fb', msg_id_fk='1', date_time='$date', comments='$comments'")  or die(mysql_error()); 

` try code $today = date("f j, y, g:i a");

`


Comments

Popular posts from this blog

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -