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