Hello. How can I set the default to be today's date in one of the feilds in PHPmyADMIN? Help is appreciated.
Thanks.
Hello. How can I set the default to be today's date in one of the feilds in PHPmyADMIN? Help is appreciated.
Thanks.
UPDATE tablename SET datefield=CURDATE() where [condition];
that assumes your format is XXXX-XX-XX.
Alternately you could make your column type a timestamp(14) which will timestamp the record every time your create one or update one.
Thanks mink.
I set it it to TIMESTAMP in PHPmyADMIN, with a null value. That automatically fills new submissions in with today's date.
Thanks again.