This is an old revision of the document!


Get a Single Customer By Email Address

Usage

Examples

$Customer = $QB->getCustomerByEmail("email@gmail.com");
echo $Customer->Contact;

Parameters

  • Email – The desired customer's email. Must be exact match.

Returns

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

Source

public function getCustomerByEmail($email)
{
	$this->DB->query("SELECT * FROM qb_customer WHERE Email = '".$this->DB->prep($email)."';");
	return $this->DB->pop();
}
getcustomerbyemail.1228506839.txt.gz · Last modified: 2013/01/21 12:44 (external edit)