Ask your own question, for FREE!
Computer Science 15 Online
OpenStudy (anonymous):

give me the code to insert an image in mysql database in php platform?

OpenStudy (anonymous):

Not really going to type out a summary of this page, but it should explain what you need. Essentially the table needs to have a blob type column (for storing the image) and the php code is pretty simple to understand to actually decode and send it to the database. http://mrarrowhead.com/index.php?page=store_images_mysql_php.php

OpenStudy (anonymous):

Ideally, you shouldn't store the images in the database. Save the images in a publicly accessible folder and store the *link* in the database.

OpenStudy (anonymous):

this is very easy to store the image in public folder and link it in database...but just think about a photogallery where many person upload their photos.....i want that type of code......whenever a user want to upload a picture then this picture selected by administrator..that means when user upload the picture then this picture store in database and admin reteive the picture from database........can u all help me for that???:)

OpenStudy (anonymous):

I've actually done this before, reply this if u want furthur help

OpenStudy (anonymous):

pal zscdragon,can u kindly explain me that how i do this??pls upload ur code.....

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!