<?
$time = date("Hi");
$day = date("D");
// Monday's Schedule
if($day == "Mon")
{
if(($time_>=_'0000')_&&_($time_<=_'0459'))_{ include('onair/stacey.php'); }
if(($time_>=_'0500')_&&_($time_<=_'0959'))_{ include('onair/david.php'); }
if(($time_>=_'1000') && ($time <= '1459'))_{ include('onair/yasmin.php'); }
if(($time_>=_'1500') && ($time <= '1859'))_{ include('onair/darren.php'); }
if(($time_>=_'1900') && ($time <= '2359'))_{ include('onair/brian.php'); }
}
else
{
include('onair/notfound.php');
}
?>
Can anybody see what I've done wrong here?
The error seems to be with...
if(($time_>=_'0000')_&&_($time_<=_'0459'))_{ include('onair/stacey.php'); }
...and...
if ( ($time_=>_'0000')_&&_($time_=<_'0459') )_
{
include('onair/stacey.php');
}
...doesn't help the matter.
The error is a parse error.
Kind regards, and thanks for any help in advance.
Sam