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, ''); }
Always prints the entire table in my pdf. But I want to print <table> and </table> for one instance, and then program to print the lines between them. How can I solve this problem?
php tcpdf
blasteralfred Ψ
source share