Lionel
05-06-2005, 12:31 AM
How do you get today in php? I tried using $todaystamp but no good.
I've got a special calendar where I need to display today's events only (untill midnight).
in calendar.php, right before eval ('$caldaybits .= "' . fetch_template('calendar_showeventsbit') . '";');
I put:
if (!$todaystamp and $calendarid==4){
$eventinfo['event']="<div align=\"center\">You can only view today's events</div>";
}
That works too well. Even today is not displayed!!!
I've got a special calendar where I need to display today's events only (untill midnight).
in calendar.php, right before eval ('$caldaybits .= "' . fetch_template('calendar_showeventsbit') . '";');
I put:
if (!$todaystamp and $calendarid==4){
$eventinfo['event']="<div align=\"center\">You can only view today's events</div>";
}
That works too well. Even today is not displayed!!!