title: Parse error: syntax error, unexpected end of file in line 25
body: <p>I am building a function and there is an error please help me to resolve this.</p>
  
  <p>The error line is this:-</p>
  
  <blockquote>
    <p>Parse error:syntax error, unexpected end of file in /home/u854338141/public_html/login/register.php on line 25</p>
  </blockquote>
  
  <p>My Code:-</p>
  
  <pre><code>&lt;?php
  //Recieve username and password from android device or GET request
  $user = $_GET['username'];
  $pass = $_GET['password'];
  
  //Database connection information
  $dbhost = "mysql.hostinger.in";
  $dbuser = "u854338141_root";
  $dbpass = "1234567";
  $dbname = "u854338141_demo";
  
  //Create a connection to databse
  $con = new mysqli($dbhost, $dbuser, $dbpass, $dbname);
  
  //Define sql statement for you business logic: registration
  $sql = "INSERT into login(username, password) VALUES('" . $user . "', '" . 
  $pass . "');
  
  //Execute sql statement
  $result = $con-&gt;query($sql);
  
  if($result){
  echo json_encode(array("Result"=&gt;true));
  }else{
  echo json_encode(array("Result"=&gt;false));
  }
  </code></pre>