I want to create a table like this with FPDF, and that more tables are added like these according to the data that a query returns. Even so, having a table template helps me
This is the table:
The html code in the table is as follows:
<table border="1" cellspacing="0" cellpadding="0" align="left" width="335">
<tbody>
<tr>
<td class="border-solid" rowspan="4" colspan="2"><img width="64" height="64" id="_x0000_i1025" src=""></td>
<td class="border-solid" colspan="3" style="height:37px;">
</td>
</tr>
<tr>
<td class="border-solid" colspan="3">
</td>
</tr>
<tr>
<td class="border-solid" colspan="3">
</td>
</tr>
<tr>
<td class="border-solid" colspan="3">
</td>
</tr>
<tr>
<td class=" border-left-solid">
</td>
<td class=" border-left-solid">
</td>
<td class=" border-left-solid">
</td>
<td class=" border-left-solid">
</td>
<td class=" border-left-solid">
</td>
</tr>
<tr>
<td class=" border-left-solid">
</td>
<td class=" border-left-solid">
</td>
<td class=" border-left-solid">
</td>
<td class=" border-left-solid">
</td>
<td class=" border-left-solid">
</td>
</tr>
<tr>
<td class=" border-left-solid">
</td>
<td class=" border-left-solid">
</td>
<td class=" border-left-solid">
</td>
<td class=" border-left-solid">
</td>
<td class=" border-left-solid">
</td>
</tr>
<tr>
<td class=" border-left-solid">
</td>
<td class=" border-left-solid">
</td>
<td class=" border-left-solid">
</td>
<td class=" border-left-solid">
</td>
<td class=" border-left-solid">
</td>
</tr>
</tbody>
</table>
For now I have this code:
$pdf = new FPDF();
$pdf->SetFont('Arial','',8);
$pdf->AddPage();
$pdf->Cell(50,10,'',1);
$pdf->Cell(50,10,'',1);
$pdf->Ln();
$pdf->Cell(50,10,'',1);
$pdf->Cell(50,10,'',1);
$pdf->Ln();
$pdf->Cell(50,10,'',1);
$pdf->Cell(50,10,'',1);
$pdf->Ln();
$pdf->Cell(50,10,'',1);
$pdf->Cell(50,10,'',1);
$pdf->Ln();
$pdf->Cell(5,10,'D',1);
$pdf->Cell(10,10,'',1);
$pdf->Cell(10,10,'',1);
$pdf->Cell(70,10,'',1);
$pdf->Cell(5,10,'',1);
$pdf->Ln();
$pdf->Cell(5,10,'',1);
$pdf->Cell(10,10,'',1);
$pdf->Cell(10,10,'',1);
$pdf->Cell(70,10,'',1);
$pdf->Cell(5,10,'',1);
$pdf->Ln();
$pdf->Cell(5,10,'',1);
$pdf->Cell(10,10,'',1);
$pdf->Cell(10,10,'',1);
$pdf->Cell(70,10,'',1);
$pdf->Cell(5,10,'',1);
$pdf->Ln();
$pdf->Cell(5,10,'',1);
$pdf->Cell(10,10,'',1);
$pdf->Cell(10,10,'',1);
$pdf->Cell(70,10,'',1);
$pdf->Cell(5,10,'',1);
$pdf->Ln();
$pdf->Output();
That shows me this table
I have problems creating line breaks and joining columns of type colspan
or rowspan