Hi there,
I'm looking for a solution for this matter (I had this solution working with a Chronoforms v5 installation on another site)
1. Get the current url, which works so far:
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$url_cut = preg_replace('#.*/#', '', $actual_link);
2. Get an mysql entry with specific where conditions from one specific table
WHERE COLUMN application_id = 7 and COLUMN alias=$url_cut
GET field elements from this one specific mysql entry
3. Find an email adress in the field "elements" and send the form to that adress
If I add a return array condition (which worked in Chronoforms 5), I'm getting the error "1054 Unknown column 'Data1.1' in 'where clause'

Debugger (cutted)
How can i add a where condition, to get only the entries with application_id = 7 and alias=$url_cut?
What has changed concerning DB Read in the Chronoforms v6 version?
Thank you very much in advance and best regards,
Marc
I'm looking for a solution for this matter (I had this solution working with a Chronoforms v5 installation on another site)
1. Get the current url, which works so far:
$actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
$url_cut = preg_replace('#.*/#', '', $actual_link);
2. Get an mysql entry with specific where conditions from one specific table
WHERE COLUMN application_id = 7 and COLUMN alias=$url_cut
GET field elements from this one specific mysql entry
3. Find an email adress in the field "elements" and send the form to that adress
If I add a return array condition (which worked in Chronoforms 5), I'm getting the error "1054 Unknown column 'Data1.1' in 'where clause'

Debugger (cutted)
Array ( [Aktuelle URL] => Array ( [returned] => [var] => ) [read_data4] => Array ( [log] => Array ( [0] => SELECT `Data1`.`id` AS `Data1.id`, `Data1`.`application_id` AS `Data1.application_id`, `Data1`.`alias` AS `Data1.alias`, `Data1`.`elements` AS `Data1.elements` FROM `dwctk_zoo_item` AS `Data1` LIMIT 100; ) [var] => Array (
[13] => Array ( [Data1] => Array ( [id] => 31 [application_id] => 7 [alias] => !!URL_HERE!! [elements] => { "2d93833a-d1f3-4b51-8cdd-3cf01f2f4981": { },
"29766503-95eb-4d4f-8ecd-0e61ab3968d8": { "0": { "value": "!!eMAIL HERE!!", "text": "", "subject": "", "body": "" } },
How can i add a where condition, to get only the entries with application_id = 7 and alias=$url_cut?
What has changed concerning DB Read in the Chronoforms v6 version?
Thank you very much in advance and best regards,
Marc