<?php require 'dbconnect.php'; $stmt=$con->prepare("SELECT * FROM destination ORDER BY heading ASC"); $stmt->execute(); $data=$stmt->fetchAll(); foreach($data as $row){ $heading=$row['heading']; $image=$row['picture']; //echo '<img src="data:image;base64,'.base64_encode($image).'">'; echo '<img src="data:image/jpg;base64,'.base64_encode($row['picture']).'" style="width:35px;height:40px;">'; } ?>
addslashes
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)