TCPDF - printing table from mysql

前端 未结 4 1116
情书的邮戳
情书的邮戳 2021-01-01 01:19

in my php,

while($info3 = mysql_fetch_array($result3)){
$Name = $info3[\"Name\"];
$Address = $info3[\"Address\"];
$Age = $info3[\"Age\"];
// ----------------         


        
4条回答
  •  醉梦人生
    2021-01-01 01:42

    $tbl = '';
    while($info3 = mysql_fetch_array($result3)){
      $Name = $info3["Name"];
      $Address = $info3["Address"];
      $Age = $info3["Age"];
      // -----------------------------------------------------------------------------
      $tbl = $tbl . '';
      }  
      $tbl = $tbl . '
    '.$Name.' '.$Age.' '.$Address.'
    '; $pdf->writeHTML($tbl, true, false, false, false, '');

提交回复
热议问题