I want an image on my website that changes every hour, when its 8AM I want `image1.png` if it is 9AM I want `image2.png` if it is 10AM I want `image1.png` again and this for all hours.

All the hours you can divide by 2 have to be `image1.png`, else it has to be `image2.png`.
I don't know how to do this :S Can someone help?

I tried something like this:

```
    <?php

date_default_timezone_set("Netherlands/Amsterdam");
$now = date('G');

if ($now > 7 && $now < 20) {
    $day=1;
} else {
    $day =0;
}
?>

if ($day=1){
echo 'day!';
}
else
{
echo 'night :(';
}

?>

```

But it also dont echo day or night.