What is wrong with this?


#1


<html>
  <head>
  </head>
  <body>
    <p>
      <?php
        $items =  7;   // Set this to a number greater than 5!
        
        if($items > 5) {
          echo "You get a 10% discount!";
        }
        else {
        echo "You get a 5% discount!";
       ?></p>


#2

Please help me with this!


#3

Missing } to close else.


#4

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