Re: Ensuring users don't overwrite each other (NOT a newbie question)
| From: | Hugh Bothwell | Date: | Fri, 01 Feb 2002 13:39:48 +0000 |
| Subject: | Re: Ensuring users don't overwrite each other (NOT a newbie question) | ||
| References: | 1 2 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-16399@lists.php.net to get a copy of this message | ||
"Oliver Cronk" <ocronk@essex.ac.uk> wrote in message
news:NGENLNMKBJNBIAFJLPBHOEMPCBAA.ocronk@essex.ac.uk...
> Thanks for that answer, you filled in some of the blanks for the table /
> logging solution, but I am now looking at row locking instead of a
seperate
> table (and then doing things similar to what you outlined).
Just a thought - if you have the user form echo a copy of the original data
back (ie in addition to the modified data), you can compare it to the
existing data and warn the user if the data has been changed in the interim.
You must make the [compare-and-modify-if-unchanged] atomic, but that's okay,
because it's all in the same script anyway - it becomes reasonable to do it
as a transaction.