zulfiboy Posted July 12, 2009 Share Posted July 12, 2009 hi, i want to make a form which have text fields and also browse a image option and it take save to mysql database and image also upload the selected folder. please help me to get that script. Quote Link to comment https://forums.phpfreaks.com/topic/165688-upload-a-image-and-save-to-mysql-database/ Share on other sites More sharing options...
Gighalen Posted July 19, 2009 Share Posted July 19, 2009 Google is your friend, my friend. Quote Link to comment https://forums.phpfreaks.com/topic/165688-upload-a-image-and-save-to-mysql-database/#findComment-877815 Share on other sites More sharing options...
peachsnapple Posted July 20, 2009 Share Posted July 20, 2009 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 Quote Link to comment https://forums.phpfreaks.com/topic/165688-upload-a-image-and-save-to-mysql-database/#findComment-878421 Share on other sites More sharing options...
infiniteacuity Posted August 12, 2009 Share Posted August 12, 2009 php.net is also a good resource Quote Link to comment https://forums.phpfreaks.com/topic/165688-upload-a-image-and-save-to-mysql-database/#findComment-896468 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.