[PHP-DB] Re: table locking ... not required ?

2004-07-09 Thread Tim Van Wassenhove
In article <[EMAIL PROTECTED]>, Torsten Roehr wrote: > Add an int field oca to your table. Increment this value on every update. > When someone edits a row, read the value and put it into a hidden field. > Then on update check for condition WHERE oca = $ocaFromHiddenField AND id = > $id etc. Check

[PHP-DB] Re: table locking ... not required ?

2004-07-09 Thread Torsten Roehr
"Michael Gale" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > I have a web app that uses a mysql database, now lots of INSETS and > UPDATES are done on a daily bases. Now I do not want to start locking > tables. For the INSERTS it is just a plain insert with a auto increm

[PHP-DB] Re: Table Locking...

2001-11-27 Thread Benjamin Pflugmann
Hi. Please stop cross-posting and use the appropriate forum. On Wed, Nov 21, 2001 at 03:27:23PM -0700, [EMAIL PROTECTED] wrote: > > (PHP-DB folks, ignore this top question - unless you want to answer) > > Which type of DB/Table provides table locking while a process is > altering data?

[PHP-DB] Re: Table Locking...

2001-11-27 Thread John Lim
Hi Ashley, Insert records into a table with a primary key that you define, not an autoincrement field. When 2 people try to insert a record with the same primary key, one will fail, the other will succeed. The one that fails will poll the database until the other record successfully completes th