CodeIgniter Forums

Full Version: show image
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

how to show image file from database??

El Forum

I personally would not store the actual image in the database unless there is good reason.
I would store the file name ('myimage.jpg") then in your view:

<img src="/path-to-your-image/&lt;?php echo $data['filename']" />

...Something like that.

El Forum

Or use CodeIgniter HTML Helper's img tag!