MySQL Forums
Forum List  »  PHP

Re: how to show an image from mysql table
Posted by: sandeep mashetty
Date: December 28, 2015 11:04PM

Intially fetch the image results from the database and store in one variable.
ex:
<?php
$image = $row['files'];
?>

<img src="uploads/<?php echo $image; ?>" alt="ImageName" >

http://atozexams.com/

http://www.atozexams.com/exams/ibps.html

Options: ReplyQuote


Subject
Written By
Posted
Re: how to show an image from mysql table
December 28, 2015 11:04PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.