I have a problem with an error when using php:
Parse error: syntax error, unexpected $end in C:\xampp\htdocs\login.php on line 18
And this is my login.php:
if (isset ($_GET ['submit'])) {
$username = $_POST['username'];
$check_username = mysql_query ("SELECT * FROM users WHERE username='$username'");
$numrows = mysql_num_rows ($username);
if ($numrows != 1) {
echo 'that User doesn\'t exist.';
}
?>
<h2>Login to your Account</h2>
<form action='login.php' method='POST'>
<input type='text' name='username' value='Username ...' onclick='value=""' /><p />
<input type='password' name='password' value='Password ...' onclick='value=""' /><p />
<input type='submit' name='submit' value='Login to my Accou`nt' />
</form>