Hi,
For debugging purposes I would do something like what Anthony is suggesting.
I would locate an image in the
images directory, say
G493075_101_12.jpg, and find it's database ID ... then in a simplified PHP script (
in the same directory as the one you are working on), I would write the image tag statically and also immediately following I would call just that image from the database ...
$static = "website.com/images/main/G493075_101_12.jpg";
$dbase = $row_rs_listings['img_main']; // use actual specific DB call for that image ...
print "<img src=\"$static\" />";
print "<img src=\"$dbase\" />";
Here see if either show up, if the static one shows but the DB one does not then look at the source of the resultant page and see what the image-source is that is different from the static one. Possibly you are not getting results from your DB query. If neither images shows then ... then check back here and let us know what you did show up.
We're trying to find where the code is breaking, is it the database not producing results, is it the path to the image in the image directory somehow getting corrupted so it doesn't actually point to an image, is there something else going on ... we need information to figure this out.