Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Duplicate Check for any field
#7
The easiest way to do that is using QueryGenerator:

PHP Code:
$queryGenerator = new QueryGenerator('Accounts'$current_user);
$queryGenerator->setFields(array('id','cf_999'));
$queryGenerator->addCondition('id','22','e');
$query $queryGenerator->getQuery();
$rs $adb->query($query);
$cf_999 $adb->query_result($rs,0,'cf_999'); 

Look at our unit tests for a lot of examples:


https://github.com/tsolucio/coreBOSTests/blob/master/include/QueryGenerator/QueryGeneratorTest.php
Joe
TSolucio
Reply


Messages In This Thread
Duplicate Check for any field - rslemer - 09-01-2016, 01:42 PM
RE: Duplicate Check for any field - joebordes - 09-04-2016, 08:52 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)