Hi, I have this timed content PHP script for my online radio to show the pictures of DJs on their specific times. My issue is how to set specific day like only Mon-Fri or MWF and etc.
Thanks in advance.
<?php
date_default_timezone_set('Asia/Manila');
$h = date('G'); //set variable $h to the hour of the day
if ($h < 9) $img = 'autodj.jpg';
else if ($h <11) $img = 'blue.jpg';
else if ($h <15) $img = 'koki.jpg';
else if ($h < 20) $img = 'jaycee.jpg';
else if ($h < 24) $img = 'dory.jpg';
else $img = 'autodj.jpg';
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
"http://www.w3.org/TR/html4/frameset.dtd">
<HTML>
<meta http-equiv="refresh" content="120;url=index.php">
<HEAD>
<TITLE>RP DJ on Board</TITLE>
</HEAD>
<body>
<p align="center">
You're with<br />
<img src="<?php echo $img; ?>">
</body>
</p>
</HTML>