how to display an image from data base?

Viewed 30

Please help

 $conn = mysqli_connect("localhost", "root", "","sit");

 $sql = "SELECT * FROM registration";

 $result = mysqli_query($conn,$sql);

 $row = mysqli_fetch_assoc($result);

 $Photo = $row['Photo'];

echo $Photo;
echo "<img src='C:\xampp\htdocs\SIT\imagesup/".$row['Photo']."' width='170' height='100'/>";


 
0 Answers
Related