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

[eluser]rochellecanale[/eluser]
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
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:

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.


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