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.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to