```
$sql = "SELECT * FROM item_tb WHERE warranty_id = $war_id;";
$result = mysqli_query($db, $sql);
$count = 1;

while ($row_it = mysqli_fetch_array($result)) {
    $pdf->Cell(14, 10, $count, 1, 0);

    $pdf->Cell(58, 10, $row_it['item_name'], 1, 0);

    $pdf->Cell(58, 10, $row_it['serial_number'], 1, 0);

    $pdf->Cell(25, 10, $row_it['warranty_duration'] . ' bulan', 1, 0, 'C');

    $pdf->Cell(35, 10, date("d-m-Y", strtotime($row_it['expired_warranty'])), 1, 1, 'C');

    $count++;
}

```

This is my current code for output it work well if the item name short but if the item name is long, some part of the name will go into serial column.