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...orTest.php
Joe
TSolucio
Reply


Messages In This Thread
Duplicate Check for any field - by rslemer - 09-01-2016, 01:42 PM
RE: Duplicate Check for any field - by joebordes - 09-02-2016, 07:35 AM
RE: Duplicate Check for any field - by rslemer - 09-02-2016, 12:42 PM
RE: Duplicate Check for any field - by joebordes - 09-02-2016, 01:50 PM
RE: Duplicate Check for any field - by rslemer - 09-02-2016, 01:55 PM
RE: Duplicate Check for any field - by rslemer - 09-02-2016, 04:37 PM
RE: Duplicate Check for any field - by joebordes - 09-04-2016, 08:52 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)