Where do i go wrong?


#1

i get "you get a 5% discount. but when i run it states that i got error.






<?php
$items = 3;

    if($items > 5) {
      echo "You get a 10% discount!";
    }
    else{
   echo "You get a 5% discount";
    }


  ?>
</p>



#2

What error you've got?

I think this is the problem.
You forgot to add the exclamation (!) in the end of your statement:
Next time, read very carefully the Instruction. use echo to output "You get a 5% discount!"

it should be

   else{
       echo "You get a 5% discount!";
         }

Hope this helps.