Jump to content

current time help needed


minus84

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.