simple date() question

From: Date: Mon, 17 Jun 2002 17:08:46 +0000
Subject: simple date() question
Groups: php.general 
Request: Send a blank email to php-general+get-102547@lists.php.net to get a copy of this message
I want to get the current date & time and insert it into MySQL so it can be sorted later. Anyone have some code for this? $date_time = getdate(); ...then is this variable ready to be put into MySQL with type DATETIME ?? Or do I have to change this variable around a bit? Thans!!

« previous php.general (#102547) next »