• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
show image

#1
[eluser]Unknown[/eluser]
how to show image file from database??

#2
[eluser]jentree[/eluser]
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:

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

...Something like that.

#3
[eluser]InsiteFX[/eluser]
Or use CodeIgniter HTML Helper's img tag!

InsiteFX


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.