0

Hi
I'm working on a registration system and I've faced a problem with checking if the email is already inthedatabase
this is my checking code

$sql    = "SELECT * FROM users WHERE email='".$email."'";
    $result = mysql_query($sql);
    $row1   = mysql_fetch_assoc($result);
    $row1['email']; 
   if($email = $row1['email'])

the problem is that when I put any email that is not in the database it show me an error that this email is already registerd!

2
Contributors
2
Replies
8
Views
3 Years
Discussion Span
Last Post by keloa
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.