cturner Posted February 3, 2007 Share Posted February 3, 2007 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 More sharing options...
suzzane2020 Posted February 3, 2007 Share Posted February 3, 2007 after echoing the ile name try pasting that in the browser n see wat u get..im there the extension or filepath needs to be changd a bit Link to comment https://forums.phpfreaks.com/topic/36882-images-dont-appear/#findComment-175946 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.