我有来自mysql数据库的这些数据:
使用此代码:
<?php
require('fpdf/fpdf.php');
require("aacfs.php");
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFont('Arial', '', 8);
$locquery=mysql_query("select * from ptr where reservno = '0000187' group by ptr_id asc") or die(mysql_error());
while($locrow=mysql_fetch_array($locquery))
{
$pdf->Cell(30, 6, $locrow['location'], 1, 0, 'C');
}
$pdf->Ln();
$fquoquery=mysql_query("select distinct fquo_id as 'fquo_id' from passengers where reservno = '0000187' group by pass_id asc") or die(mysql_error());
while($fquorow=mysql_fetch_array($fquoquery))
{
$fquo=$fquorow['fquo_id'];
$passquery=mysql_query("select * from passengers where fquo_id = '$fquo' group by pass_id asc") or die(mysql_error());
while($passrow=mysql_fetch_array($passquery))
{
$pdf->Cell(30, 6, $passrow['pass_name'], 1, 0, 'C');
}
$pdf->Ln();
}
$pdf->Output();
?>
我正在尝试使用此输出生成 pdf:
但我有这个错误的输出:
如何使用 fpdf 实现所需的输出?请帮帮我!