Forums

DB Save return primary key

NickOg 19 Apr, 2013
Hi

Is there any way to return the value of an auto-increment primary key value after an insert? One can do it with a re-read of course but I am looking for a function that will do it for me. Is that possible? If so how?

Regards

Nick
GreyHead 19 Apr, 2013
Hi Nick,

ChronoForms adds it (and all the other saved data) to the $form->data array; add a Debugger action temporarily to see the name in the array.

Please see this FAQ for an example.

Bob
NickOg 19 Apr, 2013
Easy as that.thanks Bob.
This topic is locked and no more replies can be posted.