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

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

java - JavaFX 2 slider labelFormatter not being used -