Skip to content
Advertisement

How to delete specified row in a database table using post method in php

//Deleting is working. However, I can’t delete the specified row in the table. It always deletes the last row. I hope you could help me. Thank you! This is my code for displaying data from database:

JavaScript

//This is my code for deleting:

JavaScript

Advertisement

Answer

Delete only the last record because you submitting form whole table record. you should try this code. it will work fine.

this will submit separate record.

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