note 22262 added to function.checkdate
| From: | david dot hughes at centralscotland dot police dot uk | Date: | Wed, 12 Jun 2002 13:50:42 +0000 |
| Subject: | note 22262 added to function.checkdate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-31739@lists.php.net to get a copy of this message | ||
I tried to validate the current date (I know it will already be valid but it was to see the
validation in action) and when i tried
$date = gmdate("l dS F Y");
if (checkdate($date)) {echo "correct";}
else {echo "wrong";}
I got the message
Warning: Wrong parameter count for checkdate() in /opt/FSFapache-1.3.20/htdocs/WebManager/date.php
on line 15
wrong
Any ideas???
--
http://www.php.net/manual/en/function.checkdate.php
http://master.php.net/manage/user-notes.php?action=edit+22262
http://master.php.net/manage/user-notes.php?action=delete+22262
http://master.php.net/manage/user-notes.php?action=reject+22262