note 43258 added to function.checkdate
| From: | punkpuke at comcast dot net | Date: | Tue, 15 Jun 2004 21:12:22 +0000 |
| Subject: | note 43258 added to function.checkdate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-71119@lists.php.net to get a copy of this message | ||
I found this very useful for making a drop down form with the next 30 days in it. Along with the
next 30 days in MySQL format.
<?php
for($i = 0; $i < 30; $i++)
{
$my_time= strtotime("+$i DAY");
$see = date('F jS, Y', $my_time);
$nosee = date('Ymd', $my_time);
echo '<option value="' .$nosee. '">' .$see;
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.checkdate.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43258
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43258&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43258&report=yes
Search -- http://master.php.net/manage/user-notes.php