Introduction:
1- I am not looking for a code solution.
2- I am only asking for a way of thinking (algorithm)
Problem Description:
1- I have a mysql database running on a server.
2- The database will be accessed by several clients at the same time using a webapp powered by php
3- If client A opens a record recordIdX within the webapp, it will be displayed in correspondent html input fields, and the client will have the time to modify those values before submitting the form.
4- The problem that might happen is when another client B opens the same recordIdX, modifies it, and update the database before client A finishes the update..
Question:
What is the best way to prevent this conflict ?
 
    