Skip to content
Advertisement

Trying to upload files to a folder and to the database

I am trying to upload files to a given folder and to the database using PHP. Files are uploading to the folder successfully but don’t update the database. I can’t find the issue of that. Please help me to solve the problem.

JavaScript

?>

This is a screenshot of the table that I am trying to update.

screenshot

Advertisement

Answer

Are there no errors displayed?

Have you tried to display the contents of the $insert variable with a var_dump then copy / paste the SQL query into your mysql executor (ex: phpmyadmin)?

I think you want to test the $result_insert and not the $insert in this part:

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement