Subject | Re: [firebird-php] Rollback of set of updates |
---|---|
Author | masotti |
Post date | 2008-11-21T12:54:01Z |
Try to explain better:
masotti ha scritto:
structures (or not transactional data), and commit all in a single phase
at the end,only when thibgs are all prepared and user clicks "CONFIRM".
If the user chosses an other path, data are erased (partially or
globally), and restarts from a well known point.
Ciao.
Mimmo.
masotti ha scritto:
> Lester Caine ha scritto:In the sense yhat you (as I actually do) must retain all data in php
>
>> But how do people handle holding a transaction open -
>> CAN we in PHP?
>>
>>
>>
> AFAIK no. Transaction are closed (committed or rollback) at the end of
> the script. Docs are clear about that.
> Workaround are:
> 1) Temporary tables (connection persistence)
> 2) $_SESSION superglobal
> Don't know other methods.
>
structures (or not transactional data), and commit all in a single phase
at the end,only when thibgs are all prepared and user clicks "CONFIRM".
If the user chosses an other path, data are erased (partially or
globally), and restarts from a well known point.
Ciao.
Mimmo.