Re: Inserting a date in to DATE field
| From: | John W. Holmes | Date: | Fri, 23 Apr 2004 01:53:56 +0000 |
| Subject: | Re: Inserting a date in to DATE field | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-34059@lists.php.net to get a copy of this message | ||
Pambos Nicolaou wrote:
Is there any MySQL command which inserts the date into a DATE field of a table automatically. For example the user inserts into the table several values (name, age, etc) and the date is inserted automatically.Set the column equal to NOW() or use a TIMESTAMP column (which will be set to NOW() when the row is created or updated unless you specify a specific value). -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com