Hi,
I'm having the problem with this code, gives me "wrong datatype for second argument" error
here is the code:
<?
$page_to_show = 'second.php';
// array of days and hours
$working_time = array(
1=>array(21,22,23,0,1),//monday hours
2=>array(21,22,23,0,1),//tuesday hours
3=>array(21,22,23,0,1),//and so on
4=>array(21,22,23,0,1),
5=>array(21,22,23,0,1),
6=>array(21,22,23,0,1),
7=>array(11,12,13,14,21,22,23,0,1),
);
if (in_array(date('H')+1,$working_time[date('N')])) { [B]<-- error on this line[/B]
$page_to_show = 'first.php';
}
include($page_to_show);
?>
I have no idea what kind of error it could be,
please help