djaubs89 Posted July 15, 2017 Share Posted July 15, 2017 can someone please help me out, this is giving me a headace lol it dont show my image at all just the background // MONDAY SCHEDULEif ($d == 1 && $h >= 0 && $h = 8 && $h = 14 && $h = 16 && $h = 18 && $h = 20 && $h = 22 && $h // TUESDAY SCHEDULEif ($d == 2 && $h >= 0 && $h = 4 && $h = 14 && $h = 16 && $h = 19 && $h = 20 && $h = 22 && $h // WEDNESDAY SCHEDULEif ($d == 3 && $h >= 0 && $h = 4 && $h = 14 && $h = 16 && $h = 18 && $h = 19 && $h = 21 && $h = 0) $img = '/new/images/jukebox.gif'; // THURSDAY SCHEDULEif ($d == 4 && $h >= 0 && $h = 4 && $h = 14 && $h = 16 && $h = 18 && $h = 20 && $h = 22 && $h // FRIDAY SCHEDULEif ($d == 5 && $h >= 0 && $h = 19 && $h = 14 && $h = 16 && $h = 18 && $h = 20 && $h = 18 && $h = 0 && $h // SATURDAY SCHEDULEelse if ($d == 6 && $h >= 0 && $h = 19 && $h = 18 && $h = 18 && $h = 18 && $h = 18 && $h // SUNDAY SCHEDULEelse if ($d == 5 && $h >= 0 && $h = 23 && $h = 10 && $h = 14 && $h = 16 && $h = 18 && $h = 23 && $h = 18 && $h <?php echo $img; ?> Link to comment Share on other sites More sharing options...
Matt Skills Posted September 14, 2017 Share Posted September 14, 2017 (edited) you need a space between <?php and $h = , also , your code is all commented out with // this is how it should look $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-0; // MONDAY SCHEDULE if ($d == 1 && $h >= 0 && $h = 8 && $h = 14 && $h = 16 && $h = 18 && $h = 20 && $h = 22 && $h // TUESDAY SCHEDULE if ($d == 2 && $h >= 0 && $h = 4 && $h = 14 && $h = 16 && $h = 19 && $h = 20 && $h = 22 && $h // WEDNESDAY SCHEDULE if ($d == 3 && $h >= 0 && $h = 4 && $h = 14 && $h = 16 && $h = 18 && $h = 19 && $h = 21 && $h = 0) $img = '/new/images/jukebox.gif'; // THURSDAY SCHEDULE if ($d == 4 && $h >= 0 && $h = 4 && $h = 14 && $h = 16 && $h = 18 && $h = 20 && $h = 22 && $h // FRIDAY SCHEDULE if ($d == 5 && $h >= 0 && $h = 19 && $h = 14 && $h = 16 && $h = 18 && $h = 20 && $h = 18 && $h = 0 && $h // SATURDAY SCHEDULE else if ($d == 6 && $h >= 0 && $h = 19 && $h = 18 && $h = 18 && $h = 18 && $h = 18 && $h // SUNDAY SCHEDULE else if ($d == 5 && $h >= 0 && $h = 23 && $h = 10 && $h = 14 && $h = 16 && $h = 18 && $h = 23 && $h = 18 && $h ?> <?php echo $img; ?> [font=monospace][color=#0000bb] [/color][/font] Edited September 25, 2017 by Matt Skills 1 TWITTER: @mattcas_tro SKYPE & EMAIL: matt@stationsite.co.uk FB: ITSMATTSKILLS Developer of StationSite & RealCast Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now