Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

display image in html using php

<html>
 <head>
 <title>display image</title>
 </head>
 <body>
 <p>Here in your form and text</p>
	<?php
	$conn = mysqli_connect("localhost", "root", "", "customer");
	$image_details  = mysqli_query($conn, "SELECT * FROM customer_table");
     while ($row = mysqli_fetch_array($image_details)) {     
		
      	echo "<img src='images/".$row['imagename']."' >";   
      
    }     

	?>
  
 </body>
 </html>
Source by wlearnsmart.com #
 
PREVIOUS NEXT
Tagged: #display #image #html #php
ADD COMMENT
Topic
Name
5+4 =