why my image path is not taken?
Posted
by udaya
on Stack Overflow
See other posts from Stack Overflow
or by udaya
Published on 2010-05-11T07:05:06Z
Indexed on
2010/05/11
7:14 UTC
Read the original article
Hit count: 221
Hi
I am getting the image path from database in this foreach
foreach($image as $row){
$value = $row['dPath'];
$imgpath =base_url()."images/".$value;//this is not taken
$imgpath = base_url()."images/con_icon.jpg";//this$imgpath is taken
echo $value;
when i give $imgpath as $imgpath = base_url()."images/con_icon.jpg"; it is accepted in
<img src="<?php echo $imgpath; ?>" and image is displayed
But when i give $imgpath as $imgpath =base_url()."images/".$value;
but echo $value;
results con_icon.jpg
The image is not displayed
what is the problem
© Stack Overflow or respective owner