minus84 Posted September 8, 2010 Share Posted September 8, 2010 im trying to enter data into a database with todays date(current date) ive tried the syntax now() but it does not work with my version WAMP 2.0 ive tried to search the manual but i cannot find it im runing MySQL 5.1 $sql = mysql_query("INSERT INTO lowdown_db (mem_id, the_lowdown, post_time) VALUES('$id','$lowdown_feild','now())") or die (mysql_error()); [code] can nebody tell me wot other sytax i can use thnxs Link to comment https://forums.phpfreaks.com/topic/212908-current-time-help-needed/ Share on other sites More sharing options...
fenway Posted September 10, 2010 Share Posted September 10, 2010 That's because you're quoting it -- don't. Link to comment https://forums.phpfreaks.com/topic/212908-current-time-help-needed/#findComment-1109660 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.