note 52062 rejected from function.date by betz

From: Date: Wed, 20 Apr 2005 12:51:48 +0000
Subject: note 52062 rejected from function.date by betz
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-88257@lists.php.net to get a copy of this message
Note Submitter: amal_omairi at yahoo dot com ---- when I used function date() to insert date to MySQL this way: $today = date("Y m d"); date was inserted as zeros like this 0000-00-00. But when I used dashes in the function : $today = date("Y-m-d"); it worked just fine.

« previous php.notes (#88257) next »