I want to save the uniq_id created when saving form data to the DB and reuse it as a unique identifier in a payment site. I can reuse the primary key, (id) but can't seem to get a hold on the uniq-id.
After the DB save, I have this custom code:
The debugger gives this for the Data Array:
and for the Debug Info:
How can I save & reuse the uniq_id field? Thank you for any suggestions.
After the DB save, I have this custom code:
$form->data['merchant_ref_no'] = $form->data['id'];
$form->data['u_id']=$form->data['uniq_id'];
The debugger gives this for the Data Array:
Array
(
[option] => com_chronoforms5
[chronoform] => MyForm
.
.
.
[merchant_ref_no] => 14
[id] => 14
[name] => Joe User
[u_id] =>
)
and for the Debug Info:
Array
(
[9] => Array
(
[DB Save] => Array
(
[Queries] => Array
(
[0] => INSERT INTO `*******************` (`first_name`, `last_name`, `institution`, `email`, `phone`, `present`, `talk_title`, `diet`, `merchant_ref_no`, `id`, `uniq_id`, `created`) values ('Joe', 'User', 'Joe Inc.', 'joe@joeuser.com', '111111111', 'Yes', 'My talk title', 'I am a vegetarian', '', '', '8afeaaeae771e76d8a69606a8c63ea8cdd20e69f', '2016-03-15 17:42:50');
)
)
)
)
How can I save & reuse the uniq_id field? Thank you for any suggestions.