Re: [PHP] LOCK TABLES x COMMIT/ROLLBACK

2001-02-15 Thread Nuno Silva
Richard Lynch wrote: [snip...] > I think the idea is this: > > 1. LOCK TABLES invovled. > 2. Get the current values for all records you are about to change. > 3. Attempt to make changes. > 4. If any of the attempted changes fails, change back the ones that > succeded.* you just can't relie on

Re: [PHP] LOCK TABLES x COMMIT/ROLLBACK

2001-02-15 Thread Richard Lynch
> can someone explain me how to use LOCK TABLES to subtitute transactions? > > I don't seem to get how this is possible... and I really need this... I > have a script that updates 4 tables at a time, and I have to be sure all of > them are updated, or NONE... I can only see this possible using > c

[PHP] LOCK TABLES x COMMIT/ROLLBACK

2001-02-12 Thread Christian Dechery
can someone explain me how to use LOCK TABLES to subtitute transactions? I don't seem to get how this is possible... and I really need this... I have a script that updates 4 tables at a time, and I have to be sure all of them are updated, or NONE... I can only see this possible using commit/ro