PHP editing data in html table generated from mysql query which includes field names

If this is not a homework project, then you should start how to make it with small steps.
As you can see, this code is becoming into robust.
The update + delete + confirmation script should take into new functions.
A tutorial how to create functions

That’s a result of using the


 is used instead, the code seems to come out better.