Get a Single Customer By Full Name

Usage

Examples

$Customer = $QB->getCustomerByFullName("A J Enterprises");
echo $Customer->FirstName." ".$Customer->LastName;

Parameters

  • $name – The desired customer's FullName. Must be exact match.

Returns

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

Source

public function getCustomerByFullName($name)
{
	$this->DB->query("SELECT * FROM qb_customer WHERE FullName = '".$this->DB->prep($name)."';");
	return $this->DB->pop();
}
getcustomerbyfullname.txt · Last modified: 2013/01/21 12:44 (external edit)