Need a Website Or Web Application Or Any Help In Code , Contact Us: +91 9437911966 (Whatsapp), Note: Paid Service
Students Tutorial app relased. Download Now.

How to Retrieve Image In PHP

<!DOCTYPE html>
<title>Image retrieve</title>

<form name="form1" action="" method="post" enctype="multipart/form-data">
<td><input type="submit" name="submit2" value="display"></td>
$con = mysqli_connect('','root','','admin') or die('Unable To connect');

   $res=mysqli_query($con,"select * from images");
   echo "<table>";
   echo "<tr>";
   echo "<td>"; 
   echo '<img src="data:image/jpeg;base64,'.base64_encode($row['image'] ).'" height="200" width="200"/>';
   echo "<br>";
   ?><a href="delete.php?id=<?php echo $row["id"]; ?>">Delete</a> <?php
   echo "</td>";
   echo "</tr>";
   echo "</table>";