php - How to completed the full process or rollback to original form in yii? -


how completed full process or rollback original form in yii?

example:
have update 5 tables in database @ once. due abnormal termination 2 tables updated. want either update 5 tables or rollback original form.

i happy if answer me quickly.

put queries in try {} catch {} construction, , use transactions. if query fails whatever reason, rollback executed.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -