matafy
10-21-2009, 07:56 AM
I curently have one image echoing every hour. How would I be able to echo not just one, but two or maybe even three images at the same time?
<?PHP
function currentImage(){
$imagePath = "img/";
if (date(H) < 09 || date(H) > 21) {
return $imagePath."".date(D)."/".date(H).".png";
} else {
return $imagePath."".date(D)."/".date(H).".png";
}
}
?>
My goal is to echo the first image at a certain time, like maybe 8am, then echo the 9am image underneath it and then the 10am image underneath the 9am image and so on.... Can anyone help?
Thank you in advance,
Matafy
<?PHP
function currentImage(){
$imagePath = "img/";
if (date(H) < 09 || date(H) > 21) {
return $imagePath."".date(D)."/".date(H).".png";
} else {
return $imagePath."".date(D)."/".date(H).".png";
}
}
?>
My goal is to echo the first image at a certain time, like maybe 8am, then echo the 9am image underneath it and then the 10am image underneath the 9am image and so on.... Can anyone help?
Thank you in advance,
Matafy