这是我的登录脚本下面的一部分:
$email = $_POST['email'];
$password = $_POST['password'];
$salt = "$2a$10$R.Baj0mvj5doNvtvzDjwP5$";
$crypt_pass=crypt($password,$salt);
$query = $db->prepare('SELECT * FROM Consultants WHERE email = :email');
$query->bindParam(":email",$email);
$results = $query->execute();
$total = $query->rowCount();
$row = $query->fetch();
错误:
“PHP Notice: Undefined variable: R in /Users/Sites/pages/login.php on line 6” 这是发生错误的行 - $salt = "$2a$10$R.Baj0mvj5doNvtvzDjwP5$";