Forums

If Statement doesn't work on custom template (2 posts)

  1. Armin100
    Member
    Posted 1 year ago #

    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>";

    }

    ?>

  2. DigitalSquid
    Member
    Posted 1 year ago #

    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>";
    
    }

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.