Hi olaeblue,
Slow start to the New Year here . . . the action never allowed form data in the WHERE box. Like you, I expected that it would (but then I wrote it).
You can try a hack if you like: open administrator/components/com_chronoforms/form_actions/csv_export_gh/csv_export_gh.php and add the extra line shown here around line 174
if ( $where ) {
$where = $form->curly_replacer($where, $form->data); // <-- add this line
// strip off anything after a ;
$sc_found = strpos($where, ';');
if ( $sc_found ) {
$where = substr($where, 0, $sc_found);
}
// clean up WHERE
$where = str_ireplace('where ', '', $where);
$where = 'WHERE '.$where;
}
Bob
Hi Bob
I'm also having problems with using form data in a Sql WHERE on this action. Debugger output is below.
I added the hack you recommended to olaeblue in January, but still no joy (though this is now at line 345 of csv_export_gh.php - have you changed other stuff in the last few months ?)
Any suggestions ?
Thanks
Steve
=====
csv export failed Debug Data
CSV Export
$download_export: 0
$download_nosave: 0
Save folder is:
{#path#}/export/
$download_export: xxx
$download_export: 0
File name is:
Rupert Murdoch.csv
$query: SELECT `input_childname`, `input_parentname`, `input_dobd`, `input_dobm`, `input_doby`, `input_prefsess`, `input_altsess`, `input_addr1`, `input_addr2`, `input_addr3`, `input_postcode`, `input_homephone`, `input_mobilephone`, `input_email`, `input_medical`, `input_addinfo` FROM `n0x49_chronoforms_data_enrolment` WHERE 'input_childname' = {input_childname} ;