you need to dynamically name your text boxes using the ID value from the database as part of the input boxes name, so the input boxes might be named things like
3_FirstName
3_LastName
3_Title
4_FirstName
4_LastName
4_Title
etc etc
-- Also, create a hidden form input that contains all the ID fields in a list (ie, dynamically using PHP)
<input type='hidden' name='IDList' value="3, 4">
- Then on the processing page, split the ID list into an array, then loop through that array and use the value to determine which fields to use as the data to update for each row (thus each loop through the array updates an entry in the database).
This should be enough to get you started. The rest is up to you.
HTH