msz Posted April 23, 2013 Share Posted April 23, 2013 hy to every one..iam going to filter user input data using if(!filter_input(INPUT_POST,'$username')||!filter_input(INPUT_POST,'$password')) { echo "username or password already exists...."; } else { $sql = "INSERT INTO users (Username,Password) VALUES (:username,:password)"; $q=$dbh->prepare($sql); $q->execute(array(':username'=>$username,':password'=>$password)); $count=$q->rowCount(); echo "inserted $count rows.\n"; but it show an error...the error is that it simply show the message username or password already exists if the username or password is not exists it show the same message? if there is another metod in pdo to filter user data then plz proived the idea. Quote Link to comment https://forums.phpfreaks.com/topic/277212-php-user-varification/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.