Adding the date in mysql

Associate
Joined
19 Jun 2006
Posts
162
Location
Swansea, Wales
When i submit a form to my mySql db with php i want to datestamp the entry in the format 2006-12-02.

Is it best to use the php function to get the date first or can you use mysql to add the date on entry?
 
I tried this...

INSERT INTO mbs_table dateadded VALUES (CURDATE( ) )

but got an sql error. Any ideas?
 
Back
Top Bottom