Hi, struggling with the right syntax for Filter that would use two datepicker fields and returns filtered data for Connectivity6 table:
1st datepicker name - fromFilter
2nd datepicker name - toFilter
what should be the right PHP code for Read_data function
if this code works for those fields separately?
if (!empty($fromFilter)) {
echo 'Submission.izpildes_datums/>=:{data:fromFilter}';
}
?>
if (!empty($toFilter)) {
echo 'Submission.izpildes_datums/<=:{data:toFilter}';
}
?>
What is the right synatx for AND operator in PHP Rules list for data_read function?
Or how can I build the WHERE condition using CCv6 built-in Conditions and Operators considering that I need to check if field is not empty and ONLY if it is not empty proceed with where function?
Thanks!
Firstly I need the solution for CCv6, however it would be good to know if there are differences between CCv6 and CF7 in this.
Thanks for reading this and many thanks for the solution -
Elita
P.S. Sorry for the wrong tag; it should be Connectivity6 and Chronoforms7
1st datepicker name - fromFilter
2nd datepicker name - toFilter
what should be the right PHP code for Read_data function
if this code works for those fields separately?
if (!empty($fromFilter)) {
echo 'Submission.izpildes_datums/>=:{data:fromFilter}';
}
?>
if (!empty($toFilter)) {
echo 'Submission.izpildes_datums/<=:{data:toFilter}';
}
?>
What is the right synatx for AND operator in PHP Rules list for data_read function?
Or how can I build the WHERE condition using CCv6 built-in Conditions and Operators considering that I need to check if field is not empty and ONLY if it is not empty proceed with where function?
Thanks!
Firstly I need the solution for CCv6, however it would be good to know if there are differences between CCv6 and CF7 in this.
Thanks for reading this and many thanks for the solution -
Elita
P.S. Sorry for the wrong tag; it should be Connectivity6 and Chronoforms7