title: How to get the id in PDF page in TCPDF
body: <p>I've just recently started using TCPDF ,
  the out put page i shown and the table headings are shown and also work the query but the the get id is NULL why?</p>
  
  <p>iam pass a id  by url like</p>
  
  <pre><code>&lt;h4&gt;&lt;a href="pdf_1.php?$h_id=&lt;?php echo $id;?&gt;"&gt;Conver PDF&lt;/a&gt;&lt;/h4&gt;
  </code></pre>
  
  <p>the id show in url but 
  i var_dump the h_id that show NULL</p>
  
  <p><strong>my pdf_1 page</strong> </p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;html&gt;
  &lt;head&gt;
  &lt;style&gt;
  table,td,th{border:1px solid black;}
  &lt;/style&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;?php 
   include_once '../connect.php';
   require_once('Pdf.php');
   function runQuery($query) {
    $result = mysql_query($query);
    while($row=mysql_fetch_assoc($result)) {
     $resultset[] = $row;
    }  
    if(!empty($resultset))
     return $resultset;
   }
  $h_id=$_GET['h_id'];  
  $pdf = new Pdf('P', 'mm', 'A4', true, 'UTF-8', false);
    $pdf-&gt;SetTitle('Orders Report');
    $pdf-&gt;SetHeaderMargin(30);
    $pdf-&gt;SetTopMargin(20);
    $pdf-&gt;setFooterMargin(20);
    $pdf-&gt;SetAutoPageBreak(true);
    $pdf-&gt;SetAuthor('Author');
    $pdf-&gt;SetDisplayMode('real', 'default');
    $pdf-&gt;AddPage();
  $product_array =runQuery("SELECT * FROM tbl_invoic_details LEFT JOIN  tbl_sudent_bill ON  tbl_sudent_bill.stu_bill_id=tbl_invoic_details.bill_id Where tbl_sudent_bill. hostel_id='$h_id'"); 
  $html1 ='&lt;table&gt;
         &lt;tr&gt;     
        &lt;th&gt;Serial no&lt;/th&gt;
        &lt;th&gt;Roll_no&lt;/th&gt;
        &lt;th&gt;Total Amount&lt;/th&gt;
        &lt;th&gt;Date&lt;/th&gt;
        &lt;th&gt;Reference_no&lt;/th&gt;
         &lt;/tr&gt;
         &lt;/table&gt;';
  $pdf-&gt;writeHTML($html1, true, false, true, false, '');
  if (!empty($product_array)) { 
  $i=1;
    foreach($product_array as $key=&gt;$row){
  $html = '&lt;table&gt;
       &lt;tr&gt;
        &lt;td&gt;'.$i++.'&lt;/td&gt;
        &lt;td&gt;'.$product_array[$key]['roll_no'].'&lt;/td&gt;
        &lt;td&gt;'.$product_array[$key]['total_amnt'].'&lt;/td&gt;
        &lt;td&gt;'.$product_array[$key]['date'].'&lt;/td&gt;
        &lt;td&gt;'.$product_array[$key]['reference_no'].'&lt;/td&gt;
       &lt;/tr&gt;
        &lt;/table&gt;
  ';
  $pdf-&gt;writeHTML($html, true, false, true, false, ''); 
   }} 
  ob_end_clean(); 
  $pdf-&gt;lastPage();
  $pdf-&gt;Output('pdf_1.php');
   ?&gt;
   &lt;/body&gt;
   &lt;/html&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>how to get the  h_id in my page please help me
  thanks in advance</p>