How do I upload a photo to mysql table.

Category: Databases

Mam1606
Asked:
2013-03-14 9:40 am EST

Hits: 466
I want to be able to upload and store photos in a database so I can call them will php.
Further they are .png images with transparency.
Thanks for any help.

You must login before you can ask a follow up question.

You must login before you can submit an answer.

OTHER ANSWERS

0

jamesr
Staff
5,889 Points
2013-03-14 9:48 am EST
Thank you for your question Mam1606!

In order to upload images to a database you will need to make a field in your database to store blob data. Please see the following link on this.

http://www.codewalkers.com/c/a/Database-Articles/Storing-Images-in-Database/

Once you have the database set up to store blob data you will be able to insert them with PHP and call them with PHP.

Best Regards,
James R

You must login before you can post a comment about this answer.

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail: support@InMotionHosting.com
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!