frijole Posted March 19, 2008 Share Posted March 19, 2008 I am trying to add the date and time of the insert into the db with the other data but everything I try keeps on coming out 000-00-00? Here is my query: $query = "INSERT INTO videos (embed_html, description, date) VALUES ('$embedHTML', '$description', ??????)"; Link to comment https://forums.phpfreaks.com/topic/96839-adding-current-date-to-insert/ Share on other sites More sharing options...
DaveLinger Posted March 19, 2008 Share Posted March 19, 2008 $query = "INSERT INTO videos (embed_html, description, date) VALUES ('$embedHTML', '$description', NOW())"; Link to comment https://forums.phpfreaks.com/topic/96839-adding-current-date-to-insert/#findComment-495594 Share on other sites More sharing options...
frijole Posted March 19, 2008 Author Share Posted March 19, 2008 thanks. Link to comment https://forums.phpfreaks.com/topic/96839-adding-current-date-to-insert/#findComment-495602 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.