5a312ede689a3941c8f5ebe772516c9120a1d9d7
bernd Entities repariert

bernd authored 17 years ago

1) <?php
2) 
3) require_once('inc/db_connect.php');
4) require_once('session/checkuser.php');
5) 
6) function customer_has_email($customerno, $email)
7) {
8)   $customerno = (int) $customerno;
9)   $email = mysql_real_escape_string($email);
bernd Tabelle 'kundenkontakt' kom...

bernd authored 14 years ago

10)   $result = db_query("SELECT NULL FROM kundendaten.kunden WHERE id=".$customerno." AND (email='".$email."' OR email_extern='{$email}' OR email_rechnung='{$email'}');");