All Together, Lesson 4, PHP


#1

The following is my PHP work and it doesn't work. Can you please check it?

<html>
  <head>
  </head>
  <body>
    <p>
      <?php
        if(30>31)
        {echo "The condition is true"};
       else{echo "The condition is false"}; 
      ?>
    </p>
  </body>
</html>

#2

I figured it out . Previously, I put the semicolon after my string but outside of the curly braces. Now I put the semicolon right in between the quotation of the string and the closing curly braces and it worked.

if(30>31)
{echo "The condition is true";}
else{echo "The condition is false";}