Editing table content using forms in PHP

Status
Not open for further replies.

Sridhar_Rao

In the zone
I have a table with 30-40 records. I wish to present all the records in a html form (data in each column being displayed in a series of textbox elements of a single form). I have been able to do that successfully, but I have two requirements.

Lying next to data of each record is placed a delete button. When the user clicks on the button, corresponding record should be deleted. I can't get to do that.

The same form contains an update button, clicking on which each of the data element gets updated into the record. May be I should use foreach loop and update every record one by one. How can this be optimally done?
 
Last edited:
Status
Not open for further replies.
Top Bottom