Image Of the Day Code :P

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Image Of the Day Code :P

    PHP Code:
    <?
    $today=date(l); // Find what today is? using date function

    if($today==Monday){
    echo "Today is Monday";
    echo "<BR>";
    echo "<img src='images/image1.gif'>";
    }

    elseif($today==Tuesday){
    echo "Today is Tuesday";
    echo "<BR>";
    echo "<img src='images/image2.gif'>";
    }

    elseif($today==Wednesday){
    echo "Today is Wednesday";
    echo "<BR>";
    echo "<img src='images/image3.gif'>";
    }

    elseif($today==Thursday){
    echo "Today is Thursday";
    echo "<BR>";
    echo "<img src='images/image4.gif'>";
    }

    elseif($today==Friday){
    echo "Today is Friday";
    echo "<BR>";
    echo "<img src='images/image5.gif'>";
    }

    elseif($today==Saturday){
    echo "Today is Saturday";
    echo "<BR>";
    echo "<img src='images/image6.gif'>";
    }

    elseif($today==Sunday){
    echo "Today is Sunday";
    echo "<BR>";
    echo "<img src='images/image7.gif'>";
    }

    ?>
    Was really bored so code this :P
    Works Fine.!
    Cheers ;)

    #2
    PHP Code:
    $time time();
    $current_day date('w'$time);
    $today=date(l);
    echo 
    "Today is $today";
    echo 
    "<BR>";
    echo 
    "<img src='images/image$current_day.gif'>"


    if you are bored on 50 lines of code .. how you will be on 1000 lines of real code ?!:D
    Unamos los corazones,hoy todos somos multicolores!

    Comment


      #3
      i said i m bored...thtys yy coded it mate..

      Comment

      Working...
      X