Printing you get a 5% discount but still unable to proceed


#1


Adding an else

Am I missing something? Shouldn't this allow me to proceed?

Any help would be appreciated.


<html>
  <head>
  </head>
  <body>
    <p>
      <?php
        $items = 3;
        
        if($items  > 5) {
          echo "You get a 10% discount!";
        }
        else {
        echo "You get a 5% discount";
        }        
      ?>
    </p>
  </body>
</html>


#2

For anyone who sees this,I missed the exclamation symbol at the end f the line.


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.