php - problems with display image from the database -
this question has answer here:
- php display image blob mysql [duplicate] 3 answers
i have image store in the database iam not able display them the image in database want diplay image here
<div class='panel-body $body_class' style='height:190px; word-wrap: break-word; overflow: auto;'> <img src='data:ads;base64' '> <p class='adtext'>$row_ad->text</p> </div>
this how can it.
<div class='panel-body $body_class' style='height:190px; word-wrap: break-word; overflow: auto;'> <img src='data:image/jpeg;base64,<?php echo $row_ad->image;?>' /> <p class='adtext'><?php $row_ad->text ?></p> </div>
Comments
Post a Comment