Selam Arkadaşlar

Php ile dompdf ye veri çekemiyorum kod doğrum ama ->

olan yere veriyi çekmiyor.

php pdo ile Dompdf ye nasıl veri çekebilirim?


$bilgi=$db->prepare("SELECT * from resimler where resim_id=:id");
$bilgi->execute(array(
'id' => $_GET['resim_id']
));

$bilgiler=$bilgi->fetch(PDO::FETCH_ASSOC);

?>

$html = "









Email
DENEME deneme.com
";
$filename = "newpdffile";

// include autoloader
require_once 'dompdf/autoload.inc.php';

// reference the Dompdf namespace
use Dompdf\Dompdf;

// instantiate and use the dompdf class
$dompdf = new Dompdf();

$dompdf->loadHtml($html);

// (Optional) Setup the paper size and orientation
$dompdf->setPaper('A4', 'landscape');

// Render the HTML as PDF
$dompdf->render();

// Output the generated PDF to Browser
$dompdf->stream($filename,array("Attachment"=>0));