Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $connection = Database::getConnection();
- $result = $connection->query("SELECT mail FROM {MYTABLE}";
- $exists = in_array($attributes['email'][0], $result);
- foreach $result as $email{
- if($attributes['email'][0] == $email){
- return TRUE;
- }
- }
Add Comment
Please, Sign In to add comment