Guest User

Untitled

a guest
May 24th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. /**
  2. * email
  3. *
  4. * @return void
  5. * @author Mathew
  6. **/
  7. public function email($email)
  8. {
  9. $this->db->select($this->tables['users'].'.email');
  10. $this->db->from($this->tables['users']);
  11. $this->db->where($this->tables['users'].'.email', $email);
  12. $this->db->limit(1);
  13. $i = $this->db->get();
  14.  
  15. if ($i->num_rows() == 1)
  16. {
  17. log_message('error', 'Duplicate Email Found : '.$email);
  18. return true;
  19. }
  20. else
  21. {
  22. return false;
  23. }
Add Comment
Please, Sign In to add comment