DB Read 'AND' condition

Use an AND condition in a ChronoForms DB Read action.

Overview

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

Answered
ti tim92109 29 Mar, 2016
I have [hopefully] a simple question. I wanted to use an 'AND' operator in the condition fields. Is this possible? I've tried several ways... for a couple examples:
<?php 
return array(('cb_accounttype' => 'Company') AND ('user_id' => $user); ?>
?>

<?php 
return array('cb_accounttype' => 'Company' && 'user_id' => $user); ?>
?>

Is there a way to do this? Hopefully I'm just using the wrong syntax.

thanks!
ti tim92109 29 Mar, 2016
Awesome! I knew that would be an easy one for you. Definitely a page worth bookmarking.

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