This is an old revision of the document!


Get a Single Customer By ListID

Usage

Examples

$Customer = $QB->getCustomerByID("80004EB9-1199278616");
echo $Customer->FullName;

Parameters

  • ID – The desired customer's ListID. Must be exact match.

Returns

  • FALSE if customer wasn't found.
  • Otherwise returns first row found in database as Database Object.

Source

public function getCustomerByID($listID)
{
	$this->DB->query("SELECT * FROM qb_customer WHERE ListID = '".$this->DB->prep($listID)."';");
	return $this->DB->pop();
}
getcustomerbyid.1228506870.txt.gz · Last modified: 2013/01/21 12:44 (external edit)