Jump to content

[SOLVED] Need A Bit Of Help...


PenguinX

Recommended Posts

I'm currently working on this script and it just doesn't seem to want to work. The script was made for me by a friend and I don't want to bother him anymore. This script is *supposed* to return an image at 19:00 server time and hold that image for 2 hours, then go back to normal image, but only on Fridays. It's not quite working, any ideas on hwy?

Here it is:
[code]<body bgcolor="DFDFDE">
<?php
if (date('G') == '5' && date('G') >= 19 && date('G') <= 21)
{  $imgurl = "Image 1 URL.gif";
}
else
{  $imgurl = "Image 2 URL.bmp";
}
echo "<img src=\"$imgurl\">";
?> [/code]
Link to comment
https://forums.phpfreaks.com/topic/31892-solved-need-a-bit-of-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.