Differences

This shows you the differences between two versions of the page.

Link to this comparison view

getaccountbyid [2013/01/21 12:44] (current)
Line 1: Line 1:
 +====== Get a Single Account By ListID ======
  
 +===== Usage =====
 +
 +==== Examples ====
 +
 + $Account = $QB->getAccountByID("80000081-1221752087");
 + echo $Account->FullName;
 +
 +==== Parameters ====
 +
 +  * ID  -- The desired account's ListID. Must be exact match.
 +
 +
 +==== Returns ====
 +
 +  * FALSE if account wasn't found.
 +
 +  * Otherwise returns first row found in database as Database Object.
 +
 +
 +
 +
 +===== Source =====
 +
 + public function getAccountByID($listID)
 + {
 + $this->DB->query("SELECT * FROM qb_account WHERE ListID = '".$this->DB->prep($listID)."';");
 + return $this->DB->pop();
 + }
getaccountbyid.txt · Last modified: 2013/01/21 12:44 (external edit)