Jump to content

Images not displaying from MYSql


orasysco

Recommended Posts

sounds like you are not actually creating an image resource from the image column in your db, and outputting it as an image.  You should be selecting the data from the image column in your db and using imagecreatefromstring() with that data to create the image resource and then outputting the image by setting the content type with header() and imagepng() or imagejpeg() or similar (based on what image type your image data is saved as).  See the example in the imagecreatefromstring() manual entry.

 

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.