Jump to content

upload a image and save to mysql database


zulfiboy

Recommended Posts

your question is slightly tricky to answer. It is really how you set up your database.

You need to have a picture column in your database under what ever table you plan to use it in. picture column should have a mediumblob type, collation empty, attributes binary, null yes, default null

I don't want to confuse you, because it a whole lot more to it. Check out this link. I hope it helps.

http://www.bigresource.com/PHP-Upload-image-make-new-random-filename-add-new-name-in-MySQL-D4aDoMGX.html

Link to comment
Share on other sites

  • 4 weeks later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.