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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/212908-current-time-help-needed/#findComment-1109660 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.