Hi,
I need help with changing some info here, what i would like the script to do is to call a html page and not a img.
PHP Code:
<?php
$h = date('G'); //set variable $h to the hour of the day
$d = date('w'); //set variable $d to the day of the week.
$year = date('Y'); //set variable $year to the current year
//G is the date key for hours in 24 format (not 12), with no leading 0s, like 02.
// Adjust 2 hour offset for MST below.
$h = $h-8;
// MONDAY SCHEDULE
if ($d == 1 && $h >= 0 && $h < 6) $img = 'img/hosts/rosestad.jpg';
else if ($d == 1 && $h >= 6 && $h < 9) $img = 'img/hosts/angelaa.jpg';
else if ($d == 1 && $h >= 9 && $h < 12) $img = 'img/hosts/shonw.jpg';
else if ($d == 1 && $h >= 12 && $h < 15) $img = 'img/hosts/pottsie.jpg';
else if ($d == 1 && $h >= 15 && $h < 18) $img = 'img/hosts/mikef.jpg';
else if ($d == 1 && $h >= 18 && $h < 21) $img = 'img/hosts/lizzy.jpg';
else if ($d == 1 && $h >= 21) $img = 'img/hosts/rosestad.jpg';
else if ($d == 2 && $h < 0) $img = 'img/hosts/rosestad.jpg';
// TUESDAY SCHEDULE
if ($d == 2 && $h >= 0 && $h < 6) $img = 'img/hosts/rosestad.jpg';
else if ($d == 2 && $h >= 6 && $h < 9) $img = 'img/hosts/angelaa.jpg';
else if ($d == 2 && $h >= 9 && $h < 12) $img = 'img/hosts/shonw.jpg';
else if ($d == 2 && $h >= 12 && $h < 15) $img = 'img/hosts/pottsie.jpg';
else if ($d == 2 && $h >= 15 && $h < 18) $img = 'img/hosts/mikef.jpg';
else if ($d == 2 && $h >= 18 && $h < 21) $img = 'img/hosts/lizzy.jpg';
else if ($d == 2 && $h >= 21 $img = 'img/hosts/rosestad.jpg';
else if ($d == 3 && $h < 0) $img = 'img/hosts/rosestad.jpg';
// WEDNESDAY SCHEDULE
if ($d == 3 && $h >= 0 && $h < 6) $img = 'img/hosts/rosestad.jpg';
else if ($d == 3 && $h >= 6 && $h < 9) $img = 'img/hosts/angelaa.jpg';
else if ($d == 3 && $h >= 9 && $h < 12) $img = 'img/hosts/shonw.jpg';
else if ($d == 3 && $h >= 12 && $h < 15) $img = 'img/hosts/pottsie.jpg';
else if ($d == 3 && $h >= 15 && $h < 18) $img = 'img/hosts/mikef.jpg';
else if ($d == 3 && $h >= 18 && $h < 21) $img = 'img/hosts/lizzy.jpg';
else if ($d == 3 && $h >= 21) $img = 'img/hosts/rosestad.jpg';
else if ($d == 4 && $h < 0) $img = 'img/hosts/rosestad.jpg';
// THURSDAY SCHEDULE
if ($d == 4 && $h >= 0 && $h < 6) $img = 'img/hosts/rosestad.jpg';
else if ($d == 4 && $h >= 6 && $h < 9) $img = 'img/hosts/angelaa.jpg';
else if ($d == 4 && $h >= 9 && $h < 12) $img = 'img/hosts/shonw.jpg';
else if ($d == 4 && $h >= 12 && $h < 15) $img = 'img/hosts/pottsie.jpg';
else if ($d == 4 && $h >= 15 && $h < 18) $img = 'img/hosts/mikef.jpg';
else if ($d == 4 && $h >= 18 && $h < 21) $img = 'img/hosts/lizzy.jpg';
else if ($d == 4 && $h >= 21) $img = 'img/hosts/rosestad.jpg';
else if ($d == 5 && $h < 0) $img = 'img/hosts/rosestad.jpg';
// FRIDAY SCHEDULE
if ($d == 5 && $h >= 0 && $h < 6) $img = 'img/hosts/rosestad.jpg';
else if ($d == 5 && $h >= 6 && $h < 9) $img = 'img/hosts/angelaa.jpg';
else if ($d == 5 && $h >= 9 && $h < 12) $img = 'img/hosts/shonw.jpg';
else if ($d == 5 && $h >= 12 && $h < 15) $img = 'img/hosts/patm.jpg';
else if ($d == 5 && $h >= 15 && $h < 18) $img = 'img/hosts/pottsie.jpg';
else if ($d == 5 && $h >= 18 && $h < 21) $img = 'img/hosts/edp.jpg';
else if ($d == 5 && $h >= 21 $img = 'img/hosts/rosestad.jpg';
else if ($d == 6 && $h < 0) $img = 'img/hosts/rosestad.jpg';
// SATURDAY SCHEDULE
else if ($d == 6 && $h >= 0 && $h < 6) $img = 'img/hosts/rosestad.jpg';
else if ($d == 6 && $h >= 6 && $h < 9) $img = 'img/hosts/pmw.jpg';
else if ($d == 6 && $h >= 9 && $h < 12) $img = 'img/hosts/geoffh.jpg';
else if ($d == 6 && $h >= 12 && $h < 15) $img = 'img/hosts/tomf.jpg';
else if ($d == 6 && $h >= 15 && $h < 18) $img = 'img/hosts/jimmyj.jpg';
else if ($d == 6 && $h >= 18 && $h < 21) $img = 'img/hosts/jasonr.jpg';
else if ($d == 6 && $h >= 21 $img = 'img/hosts/hrosestad.jpg';
else if ($d == 0 && $h < 0) $img = 'img/hosts/rosestad.jpg';
// SUNDAY SCHEDULE
else if ($d == 0 && $h >= 0 && $h < 6) $img = 'img/hosts/rosestad.jpg';
else if ($d == 0 && $h >= 6 && $h < 9) $img = 'img/hosts/techtronic.jpg';
else if ($d == 0 && $h >= 9 && $h < 12) $img = 'img/hosts/bigjon.jpg';
else if ($d == 0 && $h >= 12 && $h < 15) $img = 'img/hosts/joebear.jpg';
else if ($d == 0 && $h >= 15 && $h < 18) $img = 'img/hosts/russh.jpg';
else if ($d == 0 && $h >= 18 && $h < 21) $img = 'img/hosts/ronk.jpg';
else if ($d == 0 && $h >= 21 $img = 'img/hosts/rosestad.jpg';
else if ($d == 1 && $h < 0) $img = 'img/hosts/rosestad.jpg';
?>
Please help,
SuperNoob