user2146983

PHP API - checking that find must match BOTH addFindCriterion...

Discussion created by user2146983 on Aug 16, 2018
Latest reply on Aug 16, 2018 by mdenyse

Hi all,

 

With the find example below - I am just checking that BOTH addFindCriterion must be exact match for the find to be successful (and not just one or the other)?

 

 

$cmd = $fm->newFindCommand('webclient');

$cmd->addFindCriterion('web_user', '=='.$_POST['web_user']);

$cmd->addFindCriterion('web_pass', '=='.$_POST['web_pass']);

$result = $cmd->execute();

 

Thanks Dave

Outcomes