DB Save return primary key

Ni 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
Gr 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
This topic is locked and no more replies can be posted.