nickbunyun Posted April 24, 2008 Share Posted April 24, 2008 ok so this is the part of coding i need help with $sql="INSERT INTO formone (date, opinion) VALUES ('$_POST[date]','$_POST[opinion]')" I want to make it automatically add the date, so i dont have to type it in. i understand that the php line for it is <? echo date("Y-m-d"); ?> how do i make it so it automatically adds it?? Link to comment https://forums.phpfreaks.com/topic/102720-insert-date-in-database/ Share on other sites More sharing options...
nickbunyun Posted April 24, 2008 Author Share Posted April 24, 2008 never mind.. if i do this works $dateinsert = date("Y-m-d"); '$dateinsert' hehe coolness Link to comment https://forums.phpfreaks.com/topic/102720-insert-date-in-database/#findComment-525976 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.