Jump to content

Background problem


weezy8802

Recommended Posts

ok i am using php and here is the code: 

<?php
        if(date("D") == "Sun")
        {
        $BGColour = "#CCCCCC";
        }
        elseif(date("D") == "Mon")
        {
        $BGColour = "#A6CAF0";
        }
        elseif(date("D") == "Tue")
        {
        $BGColour = "#E79703";
        }
        elseif(date("D") == "Wed")
        {
        $BGColour = "#AE9675";
        }
        elseif(date("D") == "Thu")
        {
        $BGColour = "#CFDDF4";
        }
        elseif(date("D") == "Fri")
        {
        $BGColour = "#CCCCCC";
        }
        elseif(date("D") == "Sat")
        {
        $BGColour = "#A6CAF0";
        }
    ?>

Link to comment
https://forums.phpfreaks.com/topic/99944-background-problem/#findComment-511792
Share on other sites

Well that is the least of my problems now :(, i quess i need to find a decent webhost. Any ideas? I have been on freinds server for free but now its down. I really aint that good at this yet but i am learning as i go. I  didnt know were the code went i just put it at the end of the code, so it is probably in the wrong spot.

 

 

Edited:Now my site is up and his is down, I realy dont know.

Link to comment
https://forums.phpfreaks.com/topic/99944-background-problem/#findComment-511798
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.