Worked at it another way but still having problems. The following code is not the one I will be finally using but I am trying to do one step at a time.
The table I am showing should have a thumbnail in one column and a link path in another. This is just to show that the SELECT statement is working. The first column does not show the thumbnails and does not even pick up the path while the second column does and the links work. Can anyone help, I seem to have been at this for ever.
$SQL = 'SELECT photo_id, photo_thumbnail FROM gallery_photos ';
// execute SQL statement
$ret = mysql_db_query($dbname,$SQL,$link);
$numrows = mysql_num_rows($ret);
if (!$ret) { echo( mysql_error()); }
else {
while ($img = mysql_fetch_array($ret)) {
$id = $img[photo_id];
$thumbnail = $img[photo_thumbnail];
$i = $numrows;
echo ("<TR>");
echo ('<td> <img src=<?php echo ("$thumbnail");?>> </td>');
echo ("<TD><a href=\"$thumbnail\" target=_blank>$thumbnail</a></TD>\n");
echo ("</TR>");
}
echo ("</TABLE>");
}
?>