Re: MySQL Date insert

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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...


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux