Hi there thanks for that, it finally works!!!..... but it throws out all of my tables etc so the page is all messed up, is this because the code hasn't been finished there properly?
I've added the extra table code and put the newly added code in red:
$ListingTable .= "<table align=center width=100% border=1 bordercolor=#336699 rules=rows cellspacing=0>\n";
while($a1 = mysql_fetch_array($r1))
{$ListingTable .= "<table align=center width=\"100%\">\n";
$ListingTable .= "<tr>\n\t<td width=75>";
if(!empty($a1[image]))
{ $images = explode("|", $a1['image']);
$MyImage = $images[0];
//$ListingTable .= "<img src=\"re_images/$MyImage\" width=100 height=80 border=1>";
$ListingTable .= '<img src="thumbnails/'.$MyImage.'" width="100" height="80" border="1" alt="'.$a1['state'].', '.$a1['country'].'" />';
echo $ListingTable; }else
{$ListingTable .= "<img src=\"no_image.gif\" border=1>"; }
$ListingTable .= "</table>\n\n</td>\n</tr>\n\n";
}
$ListingTable .= "</table>";
Thank you!!! 😃