Hi Guys, This is my first post, just joined your site. I have an internet radio station and I am trying to find a script that will display " a recorded show" on my site. Example, I run a show called "Greatest Hits U.S.A." It runs on Saturday nights from 7 till 10 pm. I'm not sure how to write a script that will start at 7pm and end at 10 pm and also display the title of the recorded show. Below is a script I came up with but all it does is display's is today's date and time::
<?php
$date= date ("l, h:ia");
If($date == "Monday, 10:00a" || $date == "Wednesday, 10:00a" || $date == "Saturday, 08:00a") {
// Takin Ya Back With Kurt David (TYB 60S)
echo "Takin Ya Back With Kurt David (TYB 60S)";
}
If($date == "Monday, 2:00p" || $date == "Wednesday, 2:00p" || $date == "Saturday, 10:00a") {
// Takin Ya Back With Kurt David (TYB 70s)
echo "Takin Ya Back With Kurt David (TYB 70s)";
}
If($date == "Monday, 6:00p" || $date == "Wednesday, 6:00p" || $date == "Saturday, 2:00p") {
// Takin Ya Back With Kurt David (TYB 80s)
echo "Takin Ya Back With Kurt David (TYB 80s)";
}
If($date == "Friday, 8:00p") {
// The Doo Wop Express With Ron Norwood
echo "The Doo Wop Express With Ron Norwood";
}
If($date == "Saturday, 7:00p") {
// Greatest Hits U.S.A With Rick Williams
echo "Greatest Hits U.S.A With Rick Williams";
}
If($date == "Sunday, 2:00p") {
// Saving The 70s With Mike Walker
echo "Saving The 70s With Mike Walker";
}
?>
Any help would be greatly appreciated. Thanks in advance!