I guys, I want to upload files to a MySQL database in PHP....
The connection is OK...
but there is a problem with the document column..
If anyone can help me , please give me a working solution..
spgun
0
Newbie Poster
Recommended Answers
Jump to PostYou want to store the contents or the filepath?
//EDIT
Look, you really need to show some patience - posting a bump after 5 minutes is just rude, a sure fire way to getting yourself ignored.
Jump to PostFirst of all, you need to grab the file itself and pour the contents into a blob field.
make sure your form has the attributes: method="post" enctype="multipart/form-data"
THen you open the file and grab the contents
I like to use file_get_contents(), but you can use others.
Addslashes should …
All 6 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.