Parse error: syntax error, unexpected end of file in C:\Users\p\Desktop\xampp\htdocs\myproject\login.php on line 55 : <p>Parse error: syntax error, unexpected end of file in C:\Users\p\Desktop\xampp\htdocs\myproject\login.php on line 55</p>

<p>So I dont know what is causing this problem I have only started to learn Php and Html. Can anyone help fix this.</p>

<p>Here is the code.</p>

<p>Line 55 is at the bottom.
    

<pre><code>if(isset($_POST['submit'])) {

$username = $_POST['username'];
$password = $_POST['password'];


    $connection = mysqli_connect('localhost', 'root', 'root', 'loginapp');

        if($connection) {

        echo "We are connected";

        } else {
        }

        die("Database connection failed");

 ?&gt;       




&lt;!DOCTYPE html&gt;
&lt;html lang="en"&gt;
&lt;head&gt;
    &lt;meta charset="UTF-8"&gt;
    &lt;title&gt;Document&lt;/title&gt;
    &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css"&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;div class="container"&gt;

&lt;div class="col-sm-6"&gt;
    &lt;form action="login.php" method="post"&gt;
    &lt;div class="form-group"&gt;&lt;/div&gt;
           &lt;label for="username"&gt;Username&lt;/label&gt;
            &lt;input type="text" name="username" class="form-control"&gt;


           &lt;div class="form-group"&gt;
           &lt;label for="password"&gt;Password&lt;/label&gt;
            &lt;input type="password" name="password" class="form-control"&gt;


        &lt;input class="btn btn-primary" type="submit" name="submit" value="Submit"&gt;
        &lt;/div&gt;
    &lt;/form&gt;

&lt;/div&gt;
    &lt;/div&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>
