Parse error: syntax error, unexpected end of file : <p>Its working at first but when I re-edit it since it looks messy, the result is now error, can somebody please help me. </p>

<p>I think i already closed the braces and scripts, i dont know what's wrong with it.</p>

<pre><code>&lt;?php
session_start();
require("functions.php");
if(!isset($_GET['id'])&amp;&amp;isset($_SESSION['username'])) header("Location: ?id=".getId($_SESSION['username']));
?&gt;

&lt;!-- HEAD --&gt;

&lt;!doctype html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta charset="utf-8"&gt;
&lt;title&gt;System of Account&lt;/title&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
    &lt;!-- Meta, title, CSS, favicons, etc. --&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;meta http-equiv="X-UA-Compatible" content="IE=edge"&gt;
    &lt;meta name="viewport" content="width=device-width, initial-scale=1"&gt;
    &lt;!-- Latest compiled and minified CSS --&gt;
    &lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" &gt;

    &lt;!-- Latest compiled and minified JavaScript --&gt;
    &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" &gt;&lt;/script&gt;

    &lt;link rel="stylesheet" href="animate.css"&gt;
    &lt;link href="fonts/css/font-awesome.min.css" rel="stylesheet"&gt;

    &lt;link rel="shortcut icon" href="favicon.png"&gt;
    &lt;link href="css/animate.min.css" rel="stylesheet"&gt;
   &lt;link href="fonts/css/font-awesome.min.css" rel="stylesheet"&gt;
   &lt;link rel="stylesheet" type="text/css" media="print" href="print.css" /&gt;
&lt;!--&lt;link type="text/css" rel="stylesheet" href="styles.css" /&gt;--&gt;

&lt;style&gt;

     body{
    margin: 0 auto;
    background-image:url("../clsimages/GG.jpg");
    background-repeat: no-repeat;
    background-size: 100% 720px;
    -webkit-background-size:cover;
    -moz-background-size:cover;
    -o-background-size:cover;

}

.container{
    width: 65%;
    height:615px;
    background-color: rgba(52, 73, 94, 0.3);
    margin-top: 50px;
    border-radius:4px;
    border: 2px solid black;
}

&lt;/style&gt;

 &lt;style&gt;
table{
 float:left;
 border: 1px solid ;
}

&lt;/style&gt;

    &lt;style&gt;

ul {
    width: 70%;
    margin: auto;
}

&lt;/style&gt;

&lt;style&gt;

.div{
    width: 250%;
}
.form-control{
    border: 2px dashed #D1C7AC;
    width: 230px;
    color: #1E049E;
    onfocus="this.value=''
    font-weight: bold;
    font-size: 18px;
    font-family: "Times New Roman";

}


&lt;/style&gt;

&lt;script&gt;
        function printDiv(divID) {
            //Get the HTML of div
            var divElements = document.getElementById(divID).innerHTML;
            //Get the HTML of whole page
            var oldPage = document.body.innerHTML;

            //Reset the page's HTML with div's HTML only
            document.body.innerHTML = 
              "&lt;nav&gt;" + 
              divElements + "&lt;/nav&gt;";

            //Print Page
            window.print();

            //*Restore orignal HTML
           // document.body.innerHTML = oldPage;
      // window.location='print.php'; 
        }
    &lt;/script&gt;

&lt;/head&gt;

&lt;!-- BODY --&gt;

&lt;body&gt;

&lt;div id="container"&gt;

&lt;?php 

  if(!isset($_SESSION['username']))
  { 

?&gt;

 &lt;/br&gt;&lt;/br&gt;&lt;/br&gt;&lt;/br&gt;&lt;/br&gt;&lt;/br&gt;&lt;/br&gt;&lt;/br&gt;&lt;/br&gt;&lt;/br&gt;

 &lt;center&gt;

 &lt;font color="black"&gt; &lt;h2 class="form-signin-heading"&gt; Please Login &lt;i class="fa fa-sign-in"&gt; &lt;/i&gt;&lt;/h2&gt; &lt;/font&gt;

  &lt;/br&gt;&lt;/br&gt;

   &lt;form action="authenticate.php"  class="form-signin" method="POST"&gt;
      &lt;div class="input-group" style="margin-left:42%"&gt;
      &lt;span class="input-group-addon" id="basic-addon1"&gt;Username:&lt;/span&gt;
      &lt;input type="text" name="username" class="form-control"  style="width:23%; height: 40px;" required&gt;&lt;br /&gt;
        &lt;/div&gt;

        &lt;/br&gt;

         &lt;div class="input-group" style="margin-left:42%"&gt;
         &lt;span class="input-group-addon" id="basic-addon1" &gt;Password:&lt;/span&gt;
         &lt;input type="password" name="password" id="inputPassword" class="form-control" placeholder="Enter Your Password" style="width:23%; height:40px;"required&gt;
         &lt;/div&gt;

         &lt;br /&gt; &lt;/br&gt;

          &lt;button class="btn btn-lg btn-primary btn-block" type="submit" style="width:25%;"&gt;  Login &lt;i class="fa fa-sign-in"&gt; &lt;/i&gt; &lt;/button&gt;
      &lt;/center&gt;
     &lt;/form&gt;

    &lt;?php 

    if(isset($_GET["feedback"]))

      echo $_GET["feedback"]; 
  }

  ?&gt;

  &lt;!-- NEXT PAGE --&gt;


&lt;?php 
  if(isset($_SESSION['username']))
  {
     $profileUsersData = getUsersData(mysql_real_escape_string($_GET['id']));
    ?&gt;
        &lt;div id="menu"&gt;
            &lt;a class="button" href="logout.php"&gt;Logout&lt;/a&gt;
        &lt;/div&gt;

&lt;?php if(userExists(mysql_real_escape_string($_GET['id']))){ ?&gt;

&lt;!--Button print --&gt;

&lt;button class="btn btn-default" onclick="javascript:printDiv('printablediv')"  class = "btn btn-success"  &gt;&lt;i class="fa fa-print"&gt; &lt;/i&gt; &lt;b&gt; Print the fees&lt;/b&gt;&lt;/button&gt;

&lt;!-- End --&gt;



&lt;!--PRINT --&gt;


&lt;div class="" id="printablediv"&gt;

  &lt;p&gt;&lt;img src="clsimages/STATEMENT.png"&gt;&lt;/p&gt;


&lt;div align="right"&gt;

&lt;script&gt;

        var y = new Date();
        var currentyear = y.getFullYear();
        var nextyear= y.getFullYear() +1;
        document.write("&lt;p class='navbar-text pull-right'&gt;&lt;font style = 'Impact' color = 'black'&gt;&lt;h3&gt; SY:&lt;font color='blue'&gt; "+ currentyear +"-"+ nextyear +" &lt;/h3&gt;&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;");

&lt;/script&gt; &lt;/th&gt;

&lt;/div&gt;

&lt;br&gt;

&lt;!-- Table --&gt;

&lt;table border='1' style='border-collapse:collapse; width:100%; border-bottom: hidden;'&gt;
  &lt;col style='width:50%;'&gt;
  &lt;tr&gt;
    &lt;td&gt;
      &lt;ul&gt;
      &lt;p&gt;&lt;font size='2%' face='Arial'&gt; &lt;b&gt;
        &lt;/br&gt;

        &lt;?php


            if(isset($_SESSION['username']))
    {
         $profileUsersData = getUsersData(mysql_real_escape_string($_GET['id']));
        ?&gt;


        &lt;?php if(userExists(mysql_real_escape_string($_GET['id']))){ ?&gt;
        &lt;div id="header"&gt;

        &lt;?php echo 'STUDENT NAME: '. $profileUsersData['LastName'].", ".$profileUsersData['FirstName']. " ".$profileUsersData['MiddleName'].""; ?&gt;

      &lt;/br&gt;&lt;/br&gt;
        &lt;?php echo ' &lt;/br&gt; LEVEL: '. $profileUsersData['Level'].""; ?&gt;
    &lt;/b&gt;
  &lt;/ul&gt;
&lt;/td&gt;

&lt;td&gt;
  &lt;ul&gt;
    &lt;p&gt;&lt;font size="2%" face="Arial"&gt;&lt;b&gt; TELEPHONE: (63 2) 834-2915 
      &lt;/br&gt;&lt;/br&gt;
      EMAIL: christianloveschool@yahoo.com 
    &lt;/p&gt;
    &lt;/b&gt;
  &lt;/ul&gt;
  &lt;/table&gt;

  &lt;table border="1" style="border-collapse:collapse; width:100%;"&gt;
     &lt;col style="width:50%;"&gt;
    &lt;tr&gt;
      &lt;td&gt;
        &lt;ul&gt;
        &lt;font size="2%" face="Arial"&gt; 
          &lt;b&gt;
        &lt;?php echo ' &lt;/br&gt; DATE: '. $profileUsersData['TuitionDate'].""; ?&gt;
          &lt;b&gt;
          &lt;/br&gt;
        &lt;?php echo ' &lt;/br&gt; TUITION FEE: '. $profileUsersData['Tuition'].""; ?&gt;
          &lt;/br&gt; &lt;/br&gt;
         &lt;?php echo ' &lt;/br&gt; BOOKS: '. $profileUsersData['Books'].""; ?&gt;
          &lt;/br&gt; &lt;/br&gt;
        &lt;?php echo ' &lt;/br&gt; SCHOOL/ PE UNIFORM: '. $profileUsersData['Uniform'].""; ?&gt;
          &lt;/br&gt; &lt;/br&gt;
        &lt;?php echo ' &lt;/br&gt; OLD ACCOUNT: '. $profileUsersData['OldAcct'].""; ?&gt;
        &lt;/br&gt;
        &lt;/b&gt;
       &lt;/ul&gt;
      &lt;/td&gt;
    &lt;/font&gt;

      &lt;td&gt;
        &lt;font size="2%" face="Arial"&gt;
        &lt;ul&gt;
          &lt;b&gt;
    &lt;?php echo ' &lt;/br&gt; BALANCE: '. $profileUsersData['Balance'].""; ?&gt;
      &lt;/b&gt;
      &lt;/ul&gt;
      &lt;/td&gt;
         &lt;/font&gt;
    &lt;/tr&gt;
  &lt;/table&gt;

 &lt;?php } else echo "Invalid ID"; ?&gt;

 &lt;?php } ?&gt;

 &lt;!-- RULES OF PAYMENT --&gt;

 &lt;table border="1" style="border-collapse:collapse; width:100%; border-top:hidden;"&gt;
    &lt;tr&gt;
      &lt;td&gt;
        &lt;font size="3%" face="Arial"&gt;

          &lt;ul&gt;

             &lt;b&gt;&lt;u&gt;RULES ON PAYMENT:&lt;/u&gt;&lt;/b&gt;
        &lt;/font&gt;

      &lt;/br&gt;&lt;/br&gt;

        &lt;font size="2%" face="Arial"&gt;

          1. Tuition fee payment must be made every 5th day of the scheduled payment scheme. &lt;/br&gt;&lt;/br&gt;
          2.Payments should be made on time in order to take the exam needed. &lt;/br&gt;&lt;/br&gt;
          3. Reservations and Miscellaneous fees are non-refundable. &lt;/br&gt;&lt;/br&gt;
          4.A student who withdraws before the start of the school year shall be charged 50% on miscellaneous fee. &lt;/br&gt;&lt;/br&gt;
          5. A student who transfers or otherswise withdraws within two weeks after the beginning of classes and has already paid the
          pertinent and other school fees in full may be charged to pay the whole amount of miscellaneous fees and the amount supposed tp be paid pertaining to tuition fee. &lt;/br&gt;&lt;/br&gt;
          6. A student who transfers or withdraws within two weeks after the beginning of classes and has not yet paid the pertinent
          and other school fees shall be charged to pay the whole amount of miscellaneous fees in full and the amount supposed to be paid pertaining to tuition fee. &lt;/br&gt;&lt;/br&gt;
          7. A student who withdraws any time after the second week of classes, full payment of tuition and miscellaneous fees shall be charged. &lt;/br&gt;&lt;/br&gt;
          8. Discounts shall only be applied at the last payment. &lt;/br&gt;&lt;/br&gt;
          9. Any discounts granted will be forfeited if the payment is delayed. &lt;/br&gt;&lt;/br&gt;
          10. All fees should be paid in full before the end of the school year.
        &lt;/font&gt;

        &lt;/br&gt;&lt;/br&gt;

        &lt;hr&gt;&lt;/hr&gt;

        &lt;br&gt;

        &lt;table&gt;
    &lt;font size="3%"&gt;
          Any discount granted will be &lt;b&gt; forfeited &lt;/b&gt; if the payment is delayed.

    &lt;br&gt;

    &lt;u&gt; &lt;font color="red"&gt; &lt;b&gt;

     &lt;br&gt;

           Bring this notice upon payment and have the Examination Permit validated from the office.
    &lt;/font&gt; &lt;/u&gt;
    &lt;/table&gt;

    &lt;/br&gt;&lt;/br&gt;

          &lt;font color="blue" size="3%"&gt;

            Contact the school if payment has been made, thank you.

         &lt;/u&gt; &lt;/font&gt; &lt;/b&gt;

     &lt;/ul&gt;
 &lt;/table&gt;
&lt;/td&gt;
&lt;/tr&gt;

&lt;/div&gt;
&lt;/div&gt;

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