Click to See Complete Forum and Search --> : display an array of images using php


roshanjameer
03-24-2007, 10:05 AM
hi,

how to display an array of images using php.iam storing the images in array as follows.but how can i print these images.
$arr1=array('back_test.jpg','horses.jpg');
thanks
mrjameer

jasonahoule
03-24-2007, 10:11 AM
try something like this...

for($i=0; count($arr1); $i++) {
echo '<img src="'.$arr1[$1].'">';
}

roshanjameer
03-24-2007, 10:45 AM
hi,


thanks for your response.i made some corrections.
for($i=0; $i<count($arr1); $i++) {
echo '<img src="'.$arr1[$i].'">';
}


thanks
mrjameer

jasonahoule
03-24-2007, 10:56 AM
Oops. Sorry, typing too fast I guess.