database - Asking for email checking in php for registration -


this question has answer here:

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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -