• Hi for some reason, I do not understand why but when i do this if statement the auction message appears but the $itsexpired value doesn’t. Its very strange for me.

    <?php

    $hello = 100;

    if ($hello=100)

    {
    $itsexpired == “yes”;
    echo $itsexpired;

    echo “<h3>Auction has ended. Stay tune for the next auction.</h3>”;

    }

    ?>

Viewing 1 replies (of 1 total)
  • DigitalSquid

    (@twelvefootsnowman)

    You’ve got the equal sign’s wrong. Try this instead:

    $hello = 100;
    
    if ($hello == 100)
    
    {
    $itsexpired = "yes";
    echo $itsexpired;
    
    echo "<h3>Auction has ended. Stay tune for the next auction.</h3>";
    
    }
Viewing 1 replies (of 1 total)
  • The topic ‘If Statement doesn't work on custom template’ is closed to new replies.