DB Read Conditions

Create a DB Read condition with multiple fields in ChronoForms.

Overview

The issue is incorrect syntax when using the 'and' operator to combine conditions.
Refer to the official ChronoForms FAQ for the correct method to build a WHERE statement with multiple conditions.

Answered
ts tshirley 25 Nov, 2014
Hello,

I am trying to write a condition in a DB Read action that works with two fields, but I can't get it to work.

<?php
    return array( 'booleanDBField' and 'DBField' => $form->data['Form_Field']);
?> 


If I use a single condition it works but the "and" does not.

I expect this is a simple syntax problem, sorry to trouble you.

Cheers
BN BNDragon 25 Nov, 2014
Answer
Hi tshirley,

Please, take a look in this FAQ.

BN
ts tshirley 25 Nov, 2014
Thank you, that is exactly what I was looking for.

Cheers
This topic is locked and no more replies can be posted.