Skip to content
Advertisement

PHP- Insert all table values to DB in a single click and edit value?

how to insert all table values into the database with a single submit button?

how to edit the tables values and update to the database?

for the following code snippet

in the code i want to insert into a database and display in another table with edit option.

the question is how to update the values to the already exsting values in the database with a single submit button.

JavaScript

Advertisement

Answer

Please check it out. It works for me. I just added a name attribute in the input type and pass it via post method and don’t forget to rename index.html to index.php

Single Upload Only:

index.php

JavaScript

img.php

JavaScript

Multiple Uplaod:

index.php

JavaScript

img.php

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