i have a form in PHP that has a bunch of text inputs filled with data from a table in the database. what's the most efficient way to store this data when the form is submitted? it's basically just a list of phone numbers. i could do an insert/update statement on each data element one by one but that could get long depending on how many rows the form has and that'd be a lot of queries plus some fields may not have changed. i could delete all the rows in the table then just insert all the fields from the form. i could pull all the rows from the database and compare each value with the new values and decided which ones to update/insert/delete. what do you guys usually do? maybe something i haven't listed?