Re: inserting timestamp into mysql field

From: Date: Tue, 21 Sep 2004 19:49:40 +0000
Subject: Re: inserting timestamp into mysql field
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-197475@lists.php.net to get a copy of this message
On Tue, 21 Sep 2004 16:25:37 +0100, luke@lukem.co.uk <luke@lukem.co.uk> wrote: > i need to insert a current timestamp into a mysql field when a form is posted. > can anyone suggest a simple way of doing this? Here's the MySQL answer: If you have a (data type) timestamp field in your table, you don't need to do anything. MySQL will automatically fill it in on insert, and update it when you run an update query.

« previous php.general (#197475) next »