sgs Posted January 22, 2015 Posted January 22, 2015 Hi, I've a file named features.php (http://www.sgpaste.tk/index.php?plans) which needs to display png images from MySQL LONGBLOB field type from Database. I want to know that, how I can show the images on the php file from database. Please help me as soon as possible.
wolstech Posted January 22, 2015 Posted January 22, 2015 You're better off not putting the pictures in the database, this being one of many reasons. Storing stuff like pictures in a database is also widely frowned upon. Save the pictures as files and put the file names in the database. That said, there's a few ways to do it. Easiest is to read the value, send headers, and spit it out with echo. You can also use GD. I'm on an iPad so I can't give code right now, but I'm sure someone can post an example. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now