Page 3 of 3 FirstFirst 123
Results 21 to 23 of 23

Thread: Egg Script

  1. #21
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    EDTALKING


  2. #22
    Join Date
    Mar 2006
    Location
    Scotland
    Posts
    1,012
    Tokens
    175

    Latest Awards:

    Default

    PHP Code:
    <?php
    $todayis 
    date("l, F j, Y") ;
    if(
    $todayis => "Friday, April 6, 2007") {
    echo 
    "<img src=\"me+egg.png\">"//Image that appears on Easter Sunday
    } else {
    echo 
    "<img src=\"egg.gif\">"//Image that will appear before easter Sunday
    }
    ?>
    Needs to be => so its if today is 6th April OR Greater.


    You don't like me
    Chances are I don't like you.

  3. #23
    Join Date
    Jan 2006
    Location
    Cambridge
    Posts
    1,911
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by RichardKnox View Post
    PHP Code:
    <?php
    $todayis 
    date("l, F j, Y") ;
    if(
    $todayis => "Friday, April 6, 2007") {
    echo 
    "<img src=\"me+egg.png\">"//Image that appears on Easter Sunday
    } else {
    echo 
    "<img src=\"egg.gif\">"//Image that will appear before easter Sunday
    }
    ?>
    Needs to be => so its if today is 6th April OR Greater.
    cheers, i will test it tomorrow
    EDTALKING


Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •