database - Asking for email checking in php for registration -
this question has answer here:
- check if row exists mysql 3 answers
im working on php project while registration of users want user should not add same email exist in database while registring,
i hope question clear , feel free ask if confuse question too.
you should select users email emails equal entered email! this:
$query = "select email users email='$_post[email]' limit 1"; $result = $mydb->query($query)->fetchall(); //to understand line search pdo in php if($result[0]['email'] != '') //email exist
Comments
Post a Comment