title: Heredoc string and TCPDF to build dynamic PDF
body: <p>I am attempting to build a PDF based on the information in a database that I have. I am getting a 500 internal server error when I do. The code that is throwing the error is:</p>
  
  <pre><code>&lt;?php
  include('db.php');
  
      $pdfArray = array();
  
      $top = '&lt;h1&gt;Med One Equipment List&lt;/h1&gt;
              &lt;table&gt;
              &lt;thead&gt;
                  &lt;tr&gt;
                      &lt;td&gt;Manufacturer&lt;/td&gt;
                      &lt;td&gt;Model&lt;/td&gt;
                      &lt;td&gt;Description&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/thead&gt;
              &lt;tbody&gt;
          ';
          array_push($pdfArray, $top);
  
      while($rowAll = mssql_fetch_array($allResult)) {
          $html = '
          &lt;tr&gt;
              &lt;td&gt;'.$rowAll["Manufacturer"].'&lt;/td&gt;
              &lt;td&gt;'.$rowAll["Model"].'&lt;/td&gt;
              &lt;td&gt;'.$rowAll["Make"].'&lt;/td&gt;
          &lt;tr&gt;';
          array_push($pdfArray, $html);
      }
  
      $bottom = '&lt;/tbody&gt;
                  &lt;/table&gt;';
  
      array_push($pdfArray, $bottom);
  
      $table = implode(" ", $pdfArray);
  
      $html =  &lt;&lt;&lt;EOF 
      {$table} 
      EOF;
  ?&gt;
  </code></pre>
  
  <p>I am just including this file when I build my PDF with TCPDF. Let me know if I need to include some of the TCPDF code. I can't for the life of my figure out why it won't work. My guess is that I'm using herdoc incorrectly.</p>