Normally, you never store images inside a database. It is not a good practice. Images must be stored in a certain manner if you break the rules and do so. How were the images stored into the database?
Normally, you would save the image in a folder and save the path and filename to the image into the database. In this manner, you can retrieve the path/filename and just load it as an < img > tag. Otherwise, you need to format the image in complicated format and reconvert it back before displaying.
Now, with all that said… How was the images stored in the database? What format is the field? ( BLOB huge binary, ??? ) More info will help us help you.
I took on an already made script…goal is to have images uploaded within home page form a gallery for the user( think of FB…each member has their own pic gallery created from what was uploaded either on the dash or profile page). I have an image COL in BLOB format within DB.
File upload code from Home page:
Well, remember that you do not normally save images in dabases. You just use a text field in the database table like a varchar(255) and you store the path/filename of the image in it. Then, when you want to display it, you use this field to place it inside an < img > tag as the src so that it displays. If you have problems, let us know and we can help.
Thank ya so very much for this…it means alot
Question: You made a change to the img src but not the a href above it…would the data:image be placed there or take it out being that the gallery page id the only page that will showcase images other than the home page?