how to display an image from mysql and uploads folder

 
 
 
 
 
 
 
 

 how to display an image from mysql and uploads folder

how to display an image from mysql
<?php
con=mysqli_connect(“server”,”username”,”password”,”database”);
// Check connection
if (mysqli_connect_errno())
{
echo “Failed to connect to MySQL: ” . mysqli_connect_error();
}
$result = mysqli_query($con,”SELECT * FROM image ” );
while($row = mysqli_fetch_array($result))
{
echo ‘<img src=”‘ . $row[‘image’] . ‘” width=”350″ />’;
echo'<br /><br />’;
}
mysqli_close($con);
?>