I am having a problem with the getdate() function.  I don't understand why I
am getting the output that it is giving me.  Here is the code:

$timevalid_ = getdate();
$hours = $timevalid_["hours"] + 1;
$minutes = $timevalid_["minutes"];
$month = $timevalid_["mon"];
$day = $timevaild_["mday"];
$year = $timevalid_["year"];

$update = mktime($hours, $minutes, 0, $month, $day, $year);

echo "\$hours = $hours<BR>\n";
echo "\$minutes = $minutes<BR>\n";
echo "\$month = $month<BR>\n";
echo "\$day = $day<BR>\n";
echo "\$year = $year<BR>\n";
echo date("F jS, Y  g:i a",$update);

With this code the output is as follows, but I don't see why it is not
giving me the $day:

$hours = 10
$minutes = 27
$month = 3
$day =
$year = 2002
February 28th, 2002 10:27 am

You can see the code run from my server at

Any help that anyone can provide will be greatly appreciated.
Joshua E Minnie

"Don't work for recognition, but always do work worthy of recognition."

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to