The code I have right now is as follows:
Code: Select all
<?
$day = 24; // Day of the countdown
$month = 5; // Month of the countdown
$year = 2004; // Year of the countdown
$hour = 12; // Hour of the day
$min = 0; // Minutes of the day
$sec = 0; // seconds of the day
$event = "next Sceduled chat"; //event
$calculation = ((mktime ($min,$sec,$hour,0,0,$month,$day,$year) - time(void))/3600);
$hours = (int)$calculation;
$days = (int)($hours/24);
$mins = (int)$minutes;
$secs = (int)$seconds;
?>
<?=$days?> days, <?=$hours?> hours, <?=$mins?> minutes, & <?=$secs?> seconds until <?=$event?>I'm going to make a wild guess and say the problem is with...Warning: Wrong parameter count for mktime() in http://www.abrasiverock.com/chat.include on line 63
-12561 days, -301484 hours, 0 minutes, & 0 seconds until next Sceduled chat
Code: Select all
$calculation = ((mktime ($min,$sec,$hour,0,0,$month,$day,$year) - time(void))/3600);Other info you may need to help me is...
PHP Version: 4.2.2
Display Errors: On
Error Level: Not E_ALL
Register Globals: Off
Thanks for any help anyone can give on this. I am a very slow learner, but I will not give up!