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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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