why my image and first name disappears in this code?
Posted
by udaya
on Stack Overflow
See other posts from Stack Overflow
or by udaya
Published on 2010-05-12T08:08:05Z
Indexed on
2010/05/12
8:14 UTC
Read the original article
Hit count: 202
Hi
This is my foreach function
<? foreach($Selected as $row)
$value = $row['dPath'];
$imgp = base_url()."images"."/".$value;
{?>
<td>
<?=$row['dFrindName'].'</br>';?>
<?php */?> <img src="<?=$imgp ?>" name="b1" width="90" height="80" border="0"/>
</td>
<? }}?>
Print_r($Selected);
results in `Array ( [0] => Array ( [dFrindName] => chandruCP
[dPath] => m11on.gif ) [1] => Array ( [dFrindName] => udaya
[dPath] => logo.jpg ) )`
but only my last value of the array is displayed on image I can get the name udaya and logo.jpg on the screen But i cant get chandruCP and m11on.gif why it is so how can i get all the values and image on scrren
© Stack Overflow or respective owner