syntax error, unexpected end of file in ... on line 31 : <p>I didn't have any code here on line 31 in this code so what do you think what's the problem here? :)</p>

<pre><code>&lt;?php

require('config.php');

if(isset($_POST['submit'])) {

$uname = mysqli_real_escape_string($con, $_POST['uname']);
$pass = mysqli_real_escape_string($con, $_POST['pass']);

$sql = mysqli_query($con, "SELECT * FROM users WHERE uname = '$uname' AND pass = '$pass'");
if (mysqli_num_rows($sql) &gt; 0) {
  echo "You are now logged in.";
  exit();
}

} else {

  $form = &lt;&lt;&lt;EOT
  &lt;form action="login.php" method="POST"&gt;
  Username: &lt;input type="text" name="uname" /&gt;&lt;/br&gt;
  Password: &lt;input type="password" name="pass" /&gt;&lt;/br&gt;
  &lt;input type="submit" name="submit" value="Log in" /&gt;
  &lt;/form&gt;
  EOT;
  echo $form;
}



?&gt;
</code></pre>

<p>I think that all my brackets are fine :D</p>
