Imagine the following situation:
Registered in a database of several telephones of a single establishment (local_1, +55 xx xxxx-xxxX; local_1, +55 xx xxxx-xxxY; ...);
The problem: Enable the user to edit these various phones (this includes add and remove) and save in the database it.
I thought of listing the phones and in case of a change, clear the old phones from the database and add everything again (the modification)
Any suggestions to help me?