note 4225 modified in getdate by ronabop

From: Date: Fri, 20 Oct 2000 06:04:24 +0000
Subject: note 4225 modified in getdate by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-6734@lists.php.net to get a copy of this message
Re: timestamping w/ php + mysql. If you're writing a php script and just want a quick timestamp for mysql, there's an easier method. Create a field of type datetime, and then do the following: insert into blah (blah, tstamp) values ('blah', NOW()); of course, if you're doing something more complex than timestamping, then you'll need to use the php method. but for timestamping, this is less hassle. ;) http://www.php.net/manual/function.getdate.php

« previous php.notes (#6734) next »