title: How to include a seperate header file?
body: <p>Hey so I am currently working on an html/php page. </p>
  
  <p>I have a header file that I am supposed to include in my page but for some reason it's not working and I have no idea, I've done the same thing for all my other pages and it has worked so I don't know why all of a sudden its not working.</p>
  
  <pre><code>&lt;?php
  include 'header.php';
  ?&gt;
  
  &lt;center&gt;
  &lt;p&gt;
  This page utilizes several postgreSQL method calls.  Such as pg_connect(),
  pg_query(), and pg_fetch_result().
  &lt;/p&gt;
  &lt;!-- setup the table --&gt;
  &lt;table border="1" width="75%"&gt;
      &lt;tr&gt;&lt;th width="50%"&gt;Make&lt;/th&gt;&lt;th width="15%"&gt;Model&lt;/th&gt;&lt;th width="20%"&gt;Year&lt;/th&gt;&lt;th width="15%"&gt;MSRP&lt;/th&gt;&lt;/tr&gt;
  &lt;?php
  $output = ""; //Set up a variable to store the output of the loop
  //connect
  $conn = pg_connect("host=127.0.0.1 dbname=slotegraafd_db user=slotegraafd password=100658347" );
  
  //issue the query
  $sql = "SELECT automobiles.make, automobiles.model, automobiles.year, automobiles.msrp
              FROM automobiles
              ORDER BY automobiles.year ASC";
      $result = pg_query($conn, $sql);
      $records = pg_num_rows($result);
  
  //generate the table
      for($i = 0; $i &lt; $records; $i++){  //loop through all of the retrieved records and add to the output variable
          $output .= "\n\t&lt;tr&gt;\n\t\t&lt;td&gt;".pg_fetch_result($result, $i, "Make")."&lt;/td&gt;";
          $output .= "\n\t\t&lt;td&gt;".pg_fetch_result($result, $i, "Model")."&lt;/td&gt;";
          $output .= "\n\t\t&lt;td&gt;".pg_fetch_result($result, $i, "Year")."&lt;/td&gt;";
          $output .= "\n\t\t&lt;td&gt;".pg_fetch_result($result, $i, "msrp")."&lt;/td&gt;\n\t&lt;/tr&gt;";
      }
  
      echo $output; //display the output
  ?&gt;
  &lt;/table&gt;
  &lt;!-- end the table --&gt;
  &lt;/center&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is my full set of code with the include statement. There is no opening html or body tag because it is in the header file therefore I am not supposed to add it in this page. 
  Anyway any help?</p>
  
  <p>Thanks.</p>