ansipants Posted October 2, 2011 Share Posted October 2, 2011 this is the line in my script that I have to show the image: $output .= "<img>{$row['disp_pic']}</img></br>\n"; As you can see I added the image tag, but it wont show the actual image. IE shows it as a small square with another small square picture icon in the middle of it (i'm sure you guys know what i mean). Link to comment https://forums.phpfreaks.com/topic/248299-database-stored-images-not-displaying/ Share on other sites More sharing options...
mikesta707 Posted October 2, 2011 Share Posted October 2, 2011 first, image tags are self closing. They dont have any inner elements. Second, you want to add the image url to the src attribute of an img tag, like so $output .= "<img src='{$row['disp_pic']}' /></br>\n"; Link to comment https://forums.phpfreaks.com/topic/248299-database-stored-images-not-displaying/#findComment-1275040 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.