$getTime = time();
$newTimeFormat = date('h',$getTime);
if($newTimeFormat > 3 && $newTimeFormat <=12){
echo "<section id=\"main\" class=\"column\">
<iframe height=\"890\" width=\"100%\" frameborder=\"0\" id=\"display\" scrolling=\"auto\" src=\"displayDayShift.php\"></iframe>
</section>";
}
if($newTimeFormat > 12 && $newTimeFormat <=21){
echo "<section id=\"main\" class=\"column\">
<iframe height=\"890\" width=\"100%\" frameborder=\"0\" id=\"display\" scrolling=\"auto\" src=\"displaySwingShift.php\"></iframe>
</section>";
}
if($newTimeFormat > 21 && $newTimeFormat <=3){
echo "<section id=\"main\" class=\"column\">
<iframe height=\"890\" width=\"100%\" frameborder=\"0\" id=\"display\" scrolling=\"auto\" src=\"displayNightShift.php\"></iframe>
</section>";
}
The first if check works but once it gets to the 12th hour of the day it fails to display a page, any idea why this is happening? I have also tried an else if check