Beispiel #1
0
 static function isAccountHolder($account_id)
 {
     $sql = "SELECT holder_id, holders.authcode AS authcode, brand_id, limkey FROM holders JOIN accounts USING (account_id) WHERE account_id IN (?) AND user_id IN (?)";
     $rows = DBquery::get($sql, array($account_id, self::$user_id));
     if ($rows) {
         self::$holder_id = $rows[0]['holder_id'];
     }
     return $rows[0];
 }