show image - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: show image (/showthread.php?tid=41236) |
show image - El Forum - 05-02-2011 [eluser]Unknown[/eluser] how to show image file from database?? show image - El Forum - 05-02-2011 [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/<?php echo $data['filename']" /> ...Something like that. show image - El Forum - 05-03-2011 [eluser]InsiteFX[/eluser] Or use CodeIgniter HTML Helper's img tag! InsiteFX |