Welcome Guest, Not a member yet? Register   Sign In
displaying uploaded pictures
#1

[eluser]$ilovephp[/eluser]
Hello fellow CI lovers!

I know this question is going to be "noob". Well, I really had a problem with displaying my uploaded pictures in my site.

I provided a form that will allow user to upload picture in the site. Fortunately, it did work and saving the uploaded files at the "./photos/user_name_of_the_user/album_name/photo.jpg".

When I check the folder, the picture was truly uploaded. The problem is the viewing or displaying of this uploaded photo. I tried the img tag in which the src attribute is the same to the path plus the filename of the uploaded pic:
Code:
<img src = "&lt;?php echo $path.$filename; ?&gt;"></img>
//where $path = ./photos/user_name_of_the_user/album_name/
// and $filename = photo.jpg
Yet, it didn't work.. I tried the background property of a div tag with the url attribute the same to the src i provided in img tag. Still, didn't work.

Please help me guys. Thanks


Messages In This Thread
displaying uploaded pictures - by El Forum - 04-25-2010, 07:59 PM
displaying uploaded pictures - by El Forum - 04-26-2010, 12:43 AM
displaying uploaded pictures - by El Forum - 04-26-2010, 03:26 AM
displaying uploaded pictures - by El Forum - 04-26-2010, 03:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB