That's not really the best way to do it! If you have 10 records, and the guy decides to delete row 5 and edit row 7, you're going to delete the 5th row, leaving only NINE records, and you'll delete the wrong row. Rather, in a case like this, you need to use primary key's in your mySQL table. To do this, add an "id" field which is auto incrementing, and set it as the primary key. Once you've done this, you can have a hidden variable in your form called "id" which would contain the variable of that record. That way, you don't need to use tricky 2 dimensional arrays, and it minimizes errors on your side.
How I'd do something like this, would be to loop through all the available records, and print the <tr> for each one, which would include a "checkbox" to determine if they do want to edit it, the editable regions, and a hidden id field. Then, when we receive the form, we'd loop through the received stuff using foreach() (Remember, we're using a 1 dimensional array (<input type="hidden" name="id[]" value="'.$row["id"].'">) ) , checking the "checkbox" element of the array. If this is SET, we'd continue to make the necessary changes to that specific row, and we'd use the WHERE id='id_value' to know which row to change.
It's all quite simple really 😉
Hope this helps you!
Kevin