title: how to transfer data from table to pdf in PHP
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/265760/generating-pdfs-with-php">Generating PDFs with PHP</a>  </p>
  </blockquote>
  
  
  
  <p>how to transfer data from table to pdf?
  or is there other ways to print reports from table
  this is my current table i want it to transfer on pdf</p>
  
  <pre><code>$tbl_select_exp=mysql_query("select * from expeditures where Date between '$date1' and '$date2' and active= '1' order by        Date ASC"); 
      while($test = mysql_fetch_array($tbl_select_exp))
     {
      ?&gt;&lt;tr id="&lt;?php  echo  $test['ExpenseID'] ?&gt;" onclick="a(this.id); myfunction(this)"&gt;
      &lt;?php
      echo"&lt;td&gt;".$test['Date']."&lt;/td&gt;";
      echo"&lt;td&gt;".$test['ORno']."&lt;/td&gt;";
      echo"&lt;td&gt;".$test['AccountName']."&lt;/td&gt;";
      echo"&lt;td&gt;".$test['Amount']."&lt;/td&gt;";
      echo "&lt;/tr&gt;";   
      $test++;    
     }
  </code></pre>