Skip to content
Advertisement

How to insert the image file in mysql table?

I need to insert the image into MySQL table. The HTML code is,

JavaScript

and php code is,

JavaScript

After the connection to MySQL is successful, it is not inserting into the table. Can you fix this error?

Advertisement

Answer

change this

JavaScript

to and add attribute name="insert"

JavaScript

Note:- For inserting <form> data in database you need to add name attribute.

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