Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
例: ユーザーはパスワードを変更したいのですが、既存のものと同じパスワードを入力します。
ユーザーが同じ情報を再度入力しないようにするにはどうすればよいですか?
誰でもサンプルコードを提供できますか? 助けてください。
次のようなものを使用して確認します。
if( $oldPassword == $newPassword ) { // do something (like echo "same password can't be used again"; ) } else { // change password in the database }