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";
username or password already exists
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)