I'm generating PDF
using TCPDF
but when get to display the multiple images from database in PDF
, images not showing. When print_r(html);exit;
, images path calling properly but not appearing.
<?php
$defect_photos =explode (',',$data['data']['defect_photo']);
$html = '<table border=1>';$link = base_url();
foreach($defect_photos as $defect_photo){
$html .= "<tr><td><img src='$link/uploads/defects/$defect_photo'></td></tr>";
}
$html .= '</table>'; $pdf->writeHTML($html, true, false, true, false, '');
?>