Welcome Guest, Not a member yet? Register   Sign In
Call Image Path From Database
#2

[eluser]surf66[/eluser]
Hi, on my application I just save the image name to the db and I show the image in my view like this:

Code:
<img src="&lt;?php echo base_url('uploads/' . $image_thumb); ?&gt;" />

Also when your echoing the var $path I don't think you should have the curly braces there if it was me I would try this:

Code:
<img src="&lt;?php echo $path; ?&gt;" alt="Your alt text" />

I hope this can help in any way


Messages In This Thread
Call Image Path From Database - by El Forum - 10-17-2012, 03:09 AM
Call Image Path From Database - by El Forum - 10-17-2012, 08:55 AM
Call Image Path From Database - by El Forum - 10-17-2012, 09:04 AM
Call Image Path From Database - by El Forum - 10-17-2012, 06:59 PM
Call Image Path From Database - by El Forum - 10-17-2012, 07:11 PM
Call Image Path From Database - by El Forum - 10-18-2012, 01:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB