there are 2 methods to achive this .
one is to make the 'email' field in the database as a unique index , so if someone tried to add the same email, mysql will generate a 'duplicated entry' error ..
the other way is to check upon the provied mail address by useing a SELECT query which will check, mysql_num_rows() gave a number > 0 , you generate the error :