title: Parse error: syntax error, unexpected end of file, expecting '`'
body: <p>I am getting this error:
  Parse error: syntax error, unexpected end of file, expecting '`' </p>
  
  <p>Here is the code</p>
  
  <pre class="lang-php prettyprint-override"><code>&lt;?php 
  
  //create connection
  $conn = new mysqli("localhost", "root", "","database");
  
  //check connection
  if($conn-&gt;connect_error)    
      die("Connection failed " . $conn-&gt;connect_error);
  
      $sql = "SELECT * FROM Book";
      $result = $conn-&gt;query($sql);
  
  if ($result-&gt;num_rows &gt; 0) 
    {
      echo "&lt;table&gt;&lt;tr&gt; &lt;th&gt;ISBN&lt;/th&gt; &lt;th&gt;Writer&lt;/th&gt; &lt;th&gt;Title&lt;/th&gt; &lt;th&gt;Pages&lt;/th&gt;&lt;th&gt;Year Published&lt;/th&gt; &lt;th&gt;Publisher&lt;/th&gt; &lt;/tr&gt;";
      while($row = $result-&gt;fetch_assoc())    
      {
        echo "&lt;tr&gt;&lt;td&gt;"  . $row[ISBN]. "&lt;/td&gt;&lt;td&gt;". $row[Writer] . "&lt;/td&gt;" ;
        echo "&lt;td&gt; " . $row[Title] . "&lt;/td&gt;&lt;td&gt;" . $row[Number_of_pages] . "&lt;/td&gt;&lt;td&gt;" . $row[Year] . "&lt;/td&gt;&lt;td&gt;" . $row[Publishing_house] . "&lt;/td&gt;&lt;/tr&gt;";
      }
      echo "&lt;/table&gt;";
  
    } 
  else 
  {
      echo "0 results";
  }
  
  $conn-&gt;close();
  ?&gt;
  </code></pre>
  
  <p>short_open_tag is on
  I even checked with an online php syntax checker and it says there are no syntax errors.</p>