<?
$time = date("Hi");
if (($time >= 1900) && ($time <= 0600)) {
//nightime
$pic = "/path/to/night/picture";
}
else {
//daytime
$pic = "/path/to/day/picture";
}
print "<img src = \"$pic\">";
Tanja Tai wrote:
I want to change the first pic on my websites, depends on the time. For example:
AT 21:00 there is a man in the dark and
at 12:00 some guy in the sun. But please help me, but i no mysql.Is it possible just in php