I am trying to create a simple script but get an error 😕
<?php $mood="sad"; if($mood=="happy"); { print"Im Happy"; } else { print"Im $mood"; } ?>
the problem seems to be with the else part of the script..
Any thoughts
if($mood=="happy") {
get rid of ; after if
Ah thanks a lot.... looking through It I can see how that would cause it a problem
Thanks a lot 🙂