Error storing multi-files data in database

Hi everybody, i have a question here.

I’m trying to upload multiple files and storing the info into a database, using php & mysql.
The thing is the file upload works, but the storing thing is not working properly because it only store the first file in my table and the others are stored as a null.

So, what i’m doing wrong here? Cecause the file-upload step is working well, but not the database-insert step.


PS 1: Maybe should i try the update step, but i wanna know what’s wrong here.
PS 2: When i allow the “throw error” option in the file upload step, i receive a warning message: “Possible file upload attack.” but then: files are uploaded, and only one record is stored in the db.

Please let me know if i wasn’t clear, and sorry for the bad english.

Thanks a lot!

Community Page
Last updated: