Ben bu foreachta veritabanından görüntü yolunu alıyorum
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;
i. $ imgPath = base_url () "images / con_icon.jpg" olarak $ imgPath verirken; Bu kabul edilir
<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
EDIT:
echo $imgpath =base_url()."images"."/".$value;
echo $img = base_url()."images/con_icon.jpg";
Bana bunu verdi
http://localhost/ssit/images/con_icon.jpg
http://localhost/ssit/images/con_icon.jpg
o zaman neden benim <img>
bu alınamıyor
<img src="<?php echo $imgpath; ?>" name=b1 width=90 height=80
border=0 onmouseover=mouseOver() onmouseout=mouseOut()>