title: TCPDF - printing table from mysql
body: <p>in my php,</p>
  
  <pre><code>while($info3 = mysql_fetch_array($result3)){
  $Name = $info3["Name"];
  $Address = $info3["Address"];
  $Age = $info3["Age"];
  // -----------------------------------------------------------------------------
  $tbl = '
  &lt;table style="width: 638px;" cellspacing="0"&gt;
      &lt;tr&gt;
          &lt;td style="border: 1px solid #000000; width: 150px;"&gt;'.$Name.'&lt;/td&gt;
          &lt;td style="border: 1px solid #000000; width: 378px;"&gt;'.$Age.'&lt;/td&gt;
          &lt;td style="border: 1px solid #000000; width: 110px; text-align:center"&gt;'.$Address.'&lt;/td&gt;
      &lt;/tr&gt;
  &lt;/table&gt;
  ';
  
  $pdf-&gt;writeHTML($tbl, true, false, false, false, '');
  }
  </code></pre>
  
  <p>Prints the whole table always in my pdf. But I want to print <code>&lt;table&gt;</code> and <code>&lt;/table&gt;</code> for a single instance and then want to loop printing the rows in between. How can I solve this??</p>