I am retriving image from mysql database
and want to hyperlink this processed image
but not able to find solution
for ($i = 0; $i < $rows; $i++) {
$description = mysql_fetch_array($result);
$img_str= base64_encode($description["nImage"]);
echo '<a id="zoom" href="data:image/jpeg;base64,'.$img_str.'"><img src="data:image/jpeg;base64,'.$img_str.'" width="150" height="150" /></a>';
if($i%3 == 2) echo "</br>";
}