I'm trying to display an array of images by using the following code but no images are displayed. The images are in a folder named images. Is there some problem using a variable in a path name? Or am I doing something else that is wrong?
The variable $thumbnail refers to a column of filenames. If I echo that variable as an array, I get the required filenames. I just cannot turn that into an array of images.
<?php
$query = mysql_query("SELECT title FROM topics WHERE managerId='".$managerId."' AND egroup1='"."1"."' ORDER BY title ASC");
while($row1 = mysql_fetch_array($query))
{
$thumbnail .= $row1['title']."<br />";
}
?>
<table>
<tr>
<td><img src="images/<?php echo $thumbnail ?>" /></td>
</tr>
</table>