Forum Moderators: coopster
i am having trouble getting the following code to work. it is meant to check if the current hour falls in between 19 and 21, but it just doesnt seem to work and only displays one result through all hours.
any ideas ?
<?php
$hour = date("H");
if ($hour >= 19 ¦¦ $hour < 21) {
echo "Its between the time given";
} else {
echo "Its not time";
}
?>