The classes above are tools for creating PDF files using PHP code, for example to generate PDF invoice documents. Using these tools you need to create any element for your PDF document. The following classes will help you to use existing PDF files to create a new dynamic PDF file.
Hi: Using PHP 4 need to create a PDF file with the info taken from a mysql database, how ever this is not the problem, I need to display an image from the database this is the hard part, so far I've been using FPDF library but it doesn't shows the image
<?php
![How How](/uploads/1/2/5/8/125846406/749144712.jpg)
require('fpdf/fpdf.php');
$pdf=& new FPDF();//creamos el objeto
$pdf->AddPage();
$pdf->SetFont('Arial');
$pdf->Image('http://localhost/Evaluaciones/asesores/SHOWimage.php?id=AT-001121&typ=ld', 50, 750, 90, 80, 'jpeg');
$pdf->Output();
?>
/* ------- SHOEImage file ------- */
<?php
if(isset($id))
{
![How To Create Pdf File In Php From Database How To Create Pdf File In Php From Database](https://www.phpflow.com/wp-content/uploads/2017/11/export-pdf-mysql-php.png)
header('Content-type: image/pjpeg');
con('local');
if ($typ 'ld')
$sql = 'SELECT fotografia FROM fototalleres WHERE cveagentaller='.$_GET['id'].'';
else if ($typ 'nw')
$sql = 'SELECT fotografia FROM nva_foto WHERE cveagentaller='.$_GET['id'].'';
$rec = @mysql_query($sql) or die ('Error []: '.mysql_error ());
$row = @mysql_fetch_assoc($rec);
print $row['fotografia'];
} ?>
Thnx in advance
READ YA
m1k3