Codice PHP:
$pdf = new FPDF();
$pdf->AddPage();
$pdf->SetFillColor(232, 232, 232, 232, 232, 232);
$pdf->SetFont('Arial', 'B', 12);
$pdf->Cell(50, 6, 'TITLE', 1, 0, 'L', 1);
$pdf->Cell(50, 6, 'AUTHOR', 1, 0, 'L', 1);
$pdf->Cell(50, 6, 'EDITOR', 1, 0, 'L', 1);
$pdf->Cell(50, 6, 'PRICE', 1, 0, 'L', 1);
$pdf->Cell(50, 6, 'ISBN', 1, 0, 'L', 1);
$pdf->Cell(50, 6, 'NOTE', 1, 0, 'R', 1);
$field = $exp_tpl->selectEx();
var_dump($field);
foreach ($field as $data) {
foreach ($data as $key => $value) {
$pdf->Cell(40, 10, $value, 1);
}
}
$pdf->Output("book.pdf");
in pratica quando richiamo lo script mi compare sempre questo errore: