It looks like you aren't opening/closing your php code properly. Take a look at this revised code:
Anytime you're switching between PHP and HTML, you need to be sure to wrap your php code in an opening '
' and a closing '
?>'. You'll see an example of this on the line that says
You can learn more about this here.see demo