10-17-2012, 03:09 AM
[eluser]rochellecanale[/eluser]
hello guys. How can i call the image from my upload folder?
Here's my path in upload folder.
Here's the path with image
I putted the path in the database like this
using the file_path
But it does not shows any image. It shows an image icon and a border the icon looks like a tear paper. How can i call the image from my folder? Please help me guys.
I try to pull out the info from my database like this:
But nothing shows.
hello guys. How can i call the image from my upload folder?
Here's my path in upload folder.
Code:
C:\xampp\htdocs\eMLM\uploads
Here's the path with image
Code:
C:\xampp\htdocs\eMLM\uploads\Sunset.jpg
I putted the path in the database like this
Code:
http://localhost/eMLM/upload/Sunset.jpg
But it does not shows any image. It shows an image icon and a border the icon looks like a tear paper. How can i call the image from my folder? Please help me guys.
I try to pull out the info from my database like this:
Code:
$this->db->select('file_path');
$query = $this->db->get_where('upload',array('username'=>'andromeda009'));
$row = $query->row();
$path = $row->file_path;
echo "<img src='{$path}' width='100' height='100' />";
But nothing shows.