Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

how to retrieve image from database in php mysqli

// 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']."' >";   
      
    } 
Source by wlearnsmart.com #
 
PREVIOUS NEXT
Tagged: #retrieve #image #database #php #mysqli
ADD COMMENT
Topic
Name
1+1 =