on-internet
← Community

PHP - BLOB not inserting into MySQL database [duplicate]

Stack Overflow ·

I'm trying to create a page where someone can upload a document or image and it will be stored in the MySQL database, however, for some reason the content of the documents/images aren't actually being insert in to the table I created. Oddly, the rest of the columns within the table are getting populated, it's only the one LONGBLOB column that is not. Here is the HTML code for the form: <form method="post" enctype="multipart/form-data"> <input type="submit" value="Submit" /> <input type="hidden" name="MAX_FILE_SIZE" value="2000000" /> <label>Select Event:</label> <select name="eventID"> <?php f

Comments

Sign in or sign up to comment and upvote.

No comments yet.