I have the following code and it is supposed to tell you the "time of day" basically morning, afternoon, or evening but it keeps on poping out morning
PHP Code:$date = date("G");
echo $date;
if (($date) == '01' OR '02' OR '03' OR '04' OR '05' OR '06' OR '07' OR '08' OR '09' OR '10' OR '11' OR '12'){
$time = 'morning';
}elseif('13' OR '14' OR '15' OR '16' OR '17' OR '18'){
$time = 'afternoon';
}elseif('19' OR '20' OR '21' OR '22' OR '23' OR '24'){
$time = 'evening';
}else{
$time = 'sorry';
}


LinkBack URL
About LinkBacks
Reply With Quote




) {

