:mad:
I'm just learning PHP and I'm doing the famous Hello World excercise. Here is my script written verbatim:
<body>
<p> Hello World!!!
<?php
$age = 15;
$name = "Harry";
?>
<br />Hello World. Again!!!!!<br />
<?php
echo $name;
?>
</body>
</html>
And here is my output:
Hello World!!!
Hello World. Again!!!!!
Obviously on the third output line it should say "Harry" instead of being blank. I'm writing in a basic HTML page in Dreamweaver. Does anybody know what I'm doing wrong?
Thanks. 😉