Re: updating time fields

From: Date: Fri, 26 Jan 2001 17:15:46 +0000
Subject: Re: updating time fields
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-36817@lists.php.net to get a copy of this message
On Friday 26 January 2001 05:42, Kurth Bemis wrote: > i am wondering if anyone has written a snippet to process the current > date or mktime into a mysql timestamp feild. $CurrentTime = time (); $Query = "INSERT INTO mytable (timestampfield) VALUES (FRON_UNIXTIME($CurrentTime))" => MySQL already provides functions for that. -- Christian Reiniger LGDC Webmaster (http://sunsite.dk/lgdc/) Even idiots can handle computers, and many do.

« previous php.general (#36817) next »