HosipLan

Untitled

Mar 25th, 2011
346
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1. $query = $this->db
  2.     ->select('COUNT(*) as POCET')
  3.     ->from('dc_users')
  4.     ->where('UPPER(DU_EMAIL) =  UPPER(%s)', $email);
  5.  
  6. if ($blocked == 0) {
  7.     $query->and('DU_BLOCKED = 0');
  8. }
  9.  
  10. $count = $query->fetchSingle();
Advertisement
Add Comment
Please, Sign In to add comment