使用PHP在PDF中创建嵌套表

使用PHP在PDF中创建嵌套表,php,Php,我已经生成了pdf文件使用php的简单表。现在我想使用while循环在表1的单个单元格中创建另一个表2。我正在从数据库中获取记录。下图中虚线为表2,大表为表1。 我想看起来像- ____________________________________ | |-------|----------|-------| | |-------|----------|-------| | |-------|----------|-------| | |

我已经生成了pdf文件使用php的简单表。现在我想使用while循环在表1的单个单元格中创建另一个表2。我正在从数据库中获取记录。下图中虚线为表2,大表为表1。 我想看起来像-

____________________________________
|        |-------|----------|-------|
|        |-------|----------|-------|
|        |-------|----------|-------|
|        |-------|----------|-------|
|        |-------|----------|-------|
|        |-------|----------|-------|
 -----------------------------------|
提前谢谢

$rt6=@mysql_query("SELECT * FROM proforma_invoice WHERE pro_invoice_id NOT IN (SELECT proforma_ref_id FROM tax_invoice) 
order by pro_invoice_id desc");
while($row=@mysql_fetch_array($rt6))
    {   
$this->Cell(20,6,$dateColumn,1);
        $this->Cell(20,6,$row['proforma_invoice_no'],1);

$req=@mysql_query("select * from proforma_details where pro_ref_id='".$row['pro_invoice_id']."'");
        while($req1=@mysql_fetch_array($req))
        {
            $this->Cell(30,6,$i,1);
            $this->Cell(30,6,'-',1);
$this->Cell(30,6,'-',1);

        $i++;}
        $this->Ln();

    }

不要使用
@
来抑制错误和警告!谢谢..好。。但是说实际的ans是关于pdf文件中的嵌套表的