Guest User

Untitled

a guest
Oct 18th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. $connection = Database::getConnection();
  2. $result = $connection->query("SELECT mail FROM {MYTABLE}";
  3.  
  4. $exists = in_array($attributes['email'][0], $result);
  5.  
  6. foreach $result as $email{
  7. if($attributes['email'][0] == $email){
  8. return TRUE;
  9. }
  10. }
Add Comment
Please, Sign In to add comment