Jump to content

Images don't appear???


cturner

Recommended Posts

My code that is below is suppose to display photos as links. When I test the code the photos ($photos) don't appear. I know the image name and extension is in the database because I have echoed them. Has someone had this problem before? If so, how did you fix it? Can someone please help me solve this problem? I need a quick solution. Thanks in advance.

 

$photos = "";
if (isset($row['photos'])) {
$photos = mysql_real_escape_string($row['photos']);
}
$filename = "";
if (isset($row['filename'])) {
$filename = mysql_real_escape_string($row['filename']);
}
$sql = mysql_query("SELECT photos_id, parent_id, photos, filename FROM clearingsales_photos LIMIT $from, $max_results") or die ("Could not query because: " . mysql_error());
echo '<a href=# onClick="popWin('.$filename.'.htm\', \'\', \'640\', \'480\')"><img src=http://www.blueguminteractive.biz/hyc/admin/images/'.$photos.' border=0 /></a><br />';

Link to comment
https://forums.phpfreaks.com/topic/36882-images-dont-appear/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.