Hi
Thanks for the help, only I still get the same error message, only on line 8 on the new code
<?php
error_reporting( E_ALL ); // debug help of your code
$day = date("N");
$time = date("H");
if ($day == 5) && ($time > 16){
// Friday, at 5
echo('friday');
}
elseif ($day > 5){
// Weekend
echo('Weekend');
}
else {
// Not Friday or Layer
echo('week');
}
?>
on line 8 and when I tried removing the brackets:
if ($day == 5 && $time > 16){
it just shows the message for the week.
Thanks
Sam