Why am I getting an unexpected "}" syntax error in php file : <p>I'm making a sign up form for my website, I have created my db and wrote my html and php code but I keep getting this error: "Parse error: syntax error, unexpected '}' in D:\XAMPP\htdocs\example\boosie.php on line 73". If I remove it my file wont run on my browser, will just keep loading. Not sure what else is wrong, anything will help me!</p>

<pre><code>&lt;?php

$mysqli = new mysqli("127.0.0.1:3307", "root", "", "boosie");

if (mysqli_connect_error()) { echo mysqli_connect_error(); exit; }

// The (?,?,?) below are parameter markers used for variable binding

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

$sql = "INSERT INTO Signup (First_Name, Last_Name, Email, Password, Re_Password) VALUES (?,?,?,?,?)";
$stmt = $mysqli-&gt;prepare($sql);
$stmt-&gt;bind_param("sssss", $First_Name, $Last_Name, $Email, $Password, $Re_Password); // bind variables

$First_Name = $_POST['First_Name'];
$Last_Name = $_POST['Last_Name'];
$Email = $_POST['Email'];
$Password = $_POST['Password'];
$Re_Password = $_POST['Re_Password'];

$result=$stmt-&gt;execute(); // execute the prepared statement


echo "New records created successfully "; 

$stmt-&gt;close(); // close the prepared statement
$mysqli-&gt;close(); // close the database connection
}else

?&gt;
{
    &lt;html&gt;
&lt;head&gt;
&lt;title&gt; Signup Form Design Tutorial &lt;/title&gt;   
    &lt;link rel="stylesheet" type="text/css" href="style.css"&gt;
&lt;/head&gt;
&lt;body&gt;

    &lt;div id="login-box"&gt;
      &lt;div class="left-box"&gt;
        &lt;h1&gt; Sign Up&lt;/h1&gt;
          &lt;form method="post" action="boosie.php"&gt;
          &lt;input type="text" name="First_Name" placeholder="First_Name"/&gt;
          &lt;input type="text" name="Last_Name" placeholder="Last_Name"/&gt;
          &lt;input type="email" name="Email" placeholder="Email"/&gt;

          &lt;input type="password" name="Password" placeholder="Password"/&gt;


          &lt;input type="password" name="Re_Password" placeholder="Retype Password"/&gt;



          &lt;input type="submit" name="signup-button" value="Sign Up"/&gt;
        &lt;/form&gt;
        &lt;/div&gt;
        &lt;div class="right-box"&gt;
          &lt;span class="signinwith"&gt;Sign in with&lt;br/&gt;Social Network     &lt;/span&gt;

        &lt;button class="social facebook"&gt;Log in with Facebook&lt;/button&gt;    
        &lt;button class="social twitter"&gt;Log in with Twitter&lt;/button&gt; 
        &lt;button class="social google"&gt;Log in with Google+&lt;/button&gt; 


        &lt;/div&gt;
        &lt;div class="or"&gt;OR&lt;/div&gt;
    &lt;/div&gt;

&lt;/body&gt;    
&lt;/html&gt;

&lt;?php  
}
?&gt;
</code></pre>
