私はこのことについて数時間コーディングしているので、ここでは非常に単純なものが欠けていると思いますが、それを見つけることができないようです。
これらの2つのエラーが発生しています
警告:PDOStatement :: execute()[pdostatement.execute]:SQLSTATE [HY093]:無効なパラメーター番号:バインドされた変数の数が77行目のトークンの数と一致しません
警告:PDOStatement :: execute()[pdostatement.execute]:SQLSTATE [HY093]:無効なパラメーター番号:バインドされた変数の数が79行目のトークンの数と一致しません
public function resetPassword($password, $email){
$rst = $this->db->prepare("insert into users (password) values (?) where email=? ");
$rst->bindParam('?', $password);
$rst->bindParam('?', $email);
$rst->execute();
if($rst->execute()){
return "Password changed!";
}
else echo "Could not change password.";
}
私は何かを忘れていますか?