Forums

checking a db save action

NickOg 14 Aug, 2013
Hi Bob,
Is there any way - via $form? - that I can check that a db save has completed OK? I would like to be able to report success or failure.

Thanks again

Nick
GreyHead 15 Aug, 2013
Hi Nick,

You can check with a little PHP. Any errors are saved in the $form->debug array - though not specially identified so you may need to look for them. If the save is successful then the records Id and saved data are added to the $form->data array. If you add a Debugger action you can see exactly how they are saved and how to access them.

Bob
This topic is locked and no more replies can be posted.