redscorpion1971 Posted May 12, 2006 Share Posted May 12, 2006 Is there a way to display an image from a blob field without having to change the page without having to change the content type. Basically I want to show 10 images at a time in an HTML table. Link to comment https://forums.phpfreaks.com/topic/9558-display-image-from-blob-field/ Share on other sites More sharing options...
ryanlwh Posted May 12, 2006 Share Posted May 12, 2006 you have to create a separate script that use the content type header to display a specific image, and then use the following HTML code to display them:[code]<img src="display_img.php?imgID=1" />[/code]Clear enough? Link to comment https://forums.phpfreaks.com/topic/9558-display-image-from-blob-field/#findComment-35292 Share on other sites More sharing options...
lepetitcrabe Posted May 15, 2006 Share Posted May 15, 2006 not clear for me,.... i' trying to display a price list (image + price) on 1 page. Can't manage to display the pic... all i'm getting is binary data... and when i'm changing the header i get an error msg saying it's already been declared... [!--quoteo(post=373317:date=May 12 2006, 11:01 PM:name=ryanlwh)--][div class=\'quotetop\']QUOTE(ryanlwh @ May 12 2006, 11:01 PM) [snapback]373317[/snapback][/div][div class=\'quotemain\'][!--quotec--]you have to create a separate script that use the content type header to display a specific image, and then use the following HTML code to display them:[code]<img src="display_img.php?imgID=1" />[/code]Clear enough?[/quote] Link to comment https://forums.phpfreaks.com/topic/9558-display-image-from-blob-field/#findComment-35931 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.