Im working with fpdf that display two images every page, but it only display one picture every page.
Here is my code:
$id = $_GET['id'];
$stmti = $database->prepare("SELECT * FROM inv_images WHERE id = :id");
$stmti->bindParam(':id',$id);
$stmti->execute();
$imageList = $stmti->fetchAll();
foreach ($imageList as $image) {
$pdf->AddPage();
$pdf->Image('dealers_picture/'.$image['name'],30,30,160,110);
}
3
Answers
I thing you are overlapping the pictures, increase the X size in second image.