how to retrieve image from database in php mysqli example code

how to retrieve image from database in php mysqli example code

how to retrieve image from database in php mysqli example

how to retrieve image from database in php mysqli example in php

// database connection
  $conn = mysqli_connect("localhost", "root", "", "student");
// Fetch image from database
	$img = mysqli_query($conn, "SELECT * FROM student_table");
     while ($row = mysqli_fetch_array($img)) {     
		
      	echo "<img src='images/".$row['imagename']."' >";   
      
    } 
By Manish Salunke In php -

Tags:

php

Sponsors

themeforest
pluralsight
Invest in you. Online courses as low as $11.99