how to fetch blob image php html easy code

 <?php
$db = mysqli_connect("localhost","root","","tutor_db"); //keep your db name
$sql = "SELECT * FROM reg_tbl WHERE admin_id = $id";
$sth = $db->query($sql);
$result=mysqli_fetch_array($sth);
echo '<img class="NormalImage" src="data:image/jpeg;base64,'.base64_encode( $result['image'] ). '"/>';

?>

Comments

Popular posts from this blog

how to fetch blob image gallery in php html sql

how to save image to pdf in android

How to create album view with fancybox slider view in html php complete code