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

  • 4 weeks later...

Archived

This topic is now archived and is closed to further replies.

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