looking the code i need

Discussion in 'HTML & Website Design' started by IsaGate, Oct 15, 2009.

  1. #1
    HI,
    i need to know how write the code as i want is:

    to turn off the image or link on specific date

    what is the code?

    i cant find anywhere using googles...


    Thanks in advance
     
    IsaGate, Oct 15, 2009 IP
  2. Keepern

    Keepern Peon

    Messages:
    19
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    <?php
    if (date < "what ever date you want") {
    echo the image / link that you want to show;
    }
    ?>
     
    Keepern, Oct 15, 2009 IP
  3. kind_of_the_cash

    kind_of_the_cash Active Member

    Messages:
    852
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    85
    #3
    If you needs to show other image if not exact date try this (I have modified the code) and this is php code and not html (html can't do this)

    
    <?php
    if (date < "what ever date you want") {
    echo "the image / link that you want to show";
    } else {
    echo "the image / link that you want to show";
    }
    ?> 
    
    PHP:
     
    kind_of_the_cash, Oct 15, 2009 IP