How to create dynamic pdf with multiple rows?

208 Views Asked by At

I created one pdf from PHP.

but the loop rows printed like merging

    foreach($details as $b => $k)
    {
        $pdf->cell(70,80,$k['name'],20);
        $pdf->cell(70,80,$k['order_id'],20);
        $pdf->cell(70,80,$k['money'],20);
        $pdf->SetXY(5,125);
    }

enter image description here

The second row and third fourth are merged

0

There are 0 best solutions below