Re: MySQL Date insert
| From: | CPT John W. Holmes | Date: | Mon, 28 Jul 2003 18:32:16 +0000 |
| Subject: | Re: MySQL Date insert | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-29525@lists.php.net to get a copy of this message | ||
From: "NIPP, SCOTT V (SBCSI)" <sn4265@sbc.com>
> I actually think I know part of this answer... I don't think you
> need to define a variable to insert into your "date" field. Inserting an
> empty value into this filed will populate the field in the database with
the
> current time, which it appears from your code is what you are trying to do
> here. Try changing the field name and give that a shot. I think I am
> actually right here though.
Well, kind of. :)
This will only happen if the column is a TIMESTAMP column. It does not work
that way for DATE, TIME, or DATETIME columns.
But... we're getting off-topic. :)
---John Holmes...