I have probably the simplest table imaginable:
subscribtions (email, date_subscribed)
where date_subscribed is a DATE field, i was wondering how i can set the default value to be todays date, like NOW() but without the time?
| SitePoint Sponsor |



I have probably the simplest table imaginable:
subscribtions (email, date_subscribed)
where date_subscribed is a DATE field, i was wondering how i can set the default value to be todays date, like NOW() but without the time?
Guido - Community Team Advisor
Do you know where the (database) error is? Add it to the list!
Thinking Web: Voices of the Community
Blog - Free Flash Slideshow Widget



that's what i thought originally, but when i run the following in mysql query browser i get an error:
"mysql error number 1064 - check you have the right syntax to use CURDATE" (or words to that effect)Code:ALTER TABLE `my`.`subscriptions` MODIFY COLUMN `date_subscribed` DATE DEFAULT CURDATE();
Bookmarks