Thanks for all the help guys... Its cleared things up a lot for me.
Although I feel a complete noob now :tongue:
The original code was from a tutorials website, but never worked... I had tried changing bits (eg. putting quotes around the numbers, double == etc.) but it never seemed to give...
Hi there...
I am trying to use a PHP script to make a different image show depending on what time it is.
<?php
date_default_timezone_set('UTC');
$time = date("H");
function changebg() {
if ($time = 01) {echo "images/headernight.gif";}
elseif ($time = 02) {echo "images/headernight.gif";}...