this is just a thought in the pipeline rather than anything i'm working on but..
set the scene:
The system is a mutliuser Database system for a small firm with up to 50 people on the system.
2 Users are about to edit the same bit of data at the same time. what i want to happen is.
USER A finds the bit of data and clicks on 'edit' this then opens up the data in a text field so they can make the changes. USER B comes along 30 seconds later and clicks on edit, however can't get in because USER A is currently making changes.
AS soon as user A clicks 'submit' the data becomes editable again.
I know of one way round involves setting a field in the table to locked when the user opens the edit page and 'unlocked' when the user hits submit. HOWEVER, it could go wrong if the browser was closed or a computer crash or back is hit on the browser etc. Leaving the bit of data locked.
Is it possible to do? Did i make sense?
Cheers,
nozom