...

View Full Version : [Need Help] Rotating Image Question...



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

Fumigator
10-21-2009, 04:19 PM
What is the point of that code? The "if" statement does the same thing on both sides of the condition.

kbluhm
10-21-2009, 05:06 PM
That code is also chock full of "undefined constant" notices just waiting to be released.

matafy
10-21-2009, 10:15 PM
What I am looking for is to show multible images at one time at a certain time. For example;

image 1 (Mon 8am show time) = to be shown on Mon 8am
image 2 (Mon 9am show time) = to be shown on Mon 8am
image 3 (Mon 10am show time) = to be shown on Mon 8am

and when 9am rolls around. Have the images rotate for that day;

image 2 (Mon 9am show time) = to be shown on Mon 9am
image 3 (Mon 10am show time) = to be shown on Mon 9am
image 4 (Mon 11am show time) = to be shown on Mon 9am

Thank,
Matay



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum