Im using mPDF for reporting. I want to display image in the cell of a table. The images are as binary data.
The code that I have tried is
while($rows=$clist->fetchRow())
{
$html='<tr style="border: 0.1pt solid #cccccc;">
<td> '.$rows['name'].'</td>
<td> '.$rows['address_1'].', '.$rows['address_2'].'</td>';
$mpdf->WriteHTML($html);
if($studphoto!='')
{
$mpdf->Image($studphoto,500,$p,11,13);
}
$html='</tr>';
}
here I want $mpdf->Image($studphoto,500,$p,11,13);
this image come in a table cell. I have tried using '<img src="'.$studphoto.'">'
but this code is not working for some images. thats why Im using $mpdf->Image($studphoto,500,$p,11,13);
Please somebody help me to solve this...