Question : display image in html using php
Answered by : distinct-dugong-9oe0q0c2nvoo
<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 : https://wlearnsmart.com/display-image-in-php-from-folder-directory/ | Last Update : Wed, 18 May 22
Question : how to show image from php
Answered by : black-bat-xw45nii1k5qb
<html> <head> <title>display image</title> </head> <body> <p>Here in your form and text</p> <?php echo "<img src='image-name.png' >"; ?> </body> </html>
Source : https://wlearnsmart.com/display-image-in-php-from-folder-directory/ | Last Update : Tue, 14 Jul 20