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

Using 'OR' and 'AND' in SQL Server -

c++ - NetBeans Remote Development with additional configuration -

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