0
<?php

//mysql connection code

$link = mysqli_connect("localhost", "root", "", "srsc");

//mysql query

$sql = "SELECT image1 FROM images WHERE imageID=1";
$result = mysqli_query($link,$sql);
$row = mysqli_fetch_assoc($result);
?> 

//image tag

<img src="<?php echo $row["image1"]; ?>" />
Mehar
  • 13
  • 1

1 Answers1

0

This looks pretty simple. You tell us what are you storing in your database table. I mean your are storing the image itself or image path (including only image name) in database. If you are storing image path (name) then you need to give right path while accessing image and if your are storing image itself in blob form then here is some help for you.

user3224207
  • 457
  • 4
  • 14