I’m trying to loop through an array from a database, wrap each required element in html and adding the result to the end of a variable (concatenating?) but I’m struggling. My code looks something like this:
do
{
$thenumber=$image_array[NUMBER];
$image_bag=("<img src=“http://www.foobar.com/images/$thenumber.jpg” height=“140” />");
$all_images=($image_bag.$image_bag);
}
while ($image_array= mysql_fetch_array($result))
The array has 20 numbers in it and I would like everything to end up in the variable $all_images, but I’m clearly stuck at the point in red
Any help at all would be a great help indeed,
thanking you in anticipation,