Jump to content

redfieldr

New Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

redfieldr's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I'm the web master for a local radio station, but am not a php pro in any context of the word. I was able to fumble my way through php in order to set up an hourly image rotator for the top of the site. (It displays which announcer is on the air). I'm wanting to do the same for our contests, but they fall at various times (7:50am, 12:20pm, etc). One segment of the rotator script appears like this: <?php // Get the day of week (Sun=0, Mon=1 ... Sat=6) $day=date("w"); // If it's Mon-Fri, check the time if($day ==0){ // Get the Hour (24 hr) $hour=date("G"); // between times? if($hour >= 0 && $hour < 13){ // Display your image here echo "<img src='http://www.station.com/timer/images/rotator_img.png' alt='' /><br />"; } } It works fine for hours, but I cannot for the life of me figure out how to convert it for use with Minutes (I want to display "Next Contest Coming Up" and "TUNE IN NOW to play" images). Thanks in advance for whomever can point me in the right direction.
×
×
  • 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.