I am just starting to learn PHP and I get this weird error when trying to run my php script:
Parse error: syntax error, unexpected '<' in /-snip-/Account/Register.php on line 9
It is weird because my line 9 is <h1>Login</h1>
and there is no syntax error. Here is my full script:
<?php
$connection = mysql_connect("-snip-", "-snip-", "-snip-") or die("Could not connect to the Lunar Servers! Please try again later...");
mysql_select_db("-snip-", $connection) or die("Could not connect to the Lunar DB! Please try again later...");
echo "
<body style='font-family: verdana, sans-serif;'>
<div style='width: 80%; padding: 10px; border: 1px solid #e3e3e3; background-color: #fff; color: #000";
<h1>Login</h1>
</div>
</body>
";
It should connect to my MySQL Database and then display "Login" with a light gray border around it. Sadly, I recieve that error instead and I do not know why.
Thanks in advance :)