12]; $hashedpass=password_hash($password, PASSWORD_BCRYPT, $options); $adminid=$_SESSION['login4']; // new password hashing $newpassword=$_POST['newpassword']; $newhashedpass=password_hash($newpassword, PASSWORD_BCRYPT, $options); date_default_timezone_set('Asia/Kolkata');// change according timezone $currentTime = date( 'd-m-Y h:i:s A', time () ); $sql=mysqli_query($con,"SELECT AdminPassword FROM tbladmin where AdminUserName='$adminid' || AdminEmailId='$adminid'"); $num=mysqli_fetch_array($sql); if($num>0) { $dbpassword=$num['AdminPassword']; if (password_verify($password, $dbpassword)) { $con=mysqli_query($con,"update tbladmin set AdminPassword='$newhashedpass', updationDate='$currentTime' where AdminUserName='$adminid'"); $msg="Password Changed Successfully !!"; } } else { $error="Old Password not match !!"; } } ?> ADMIN | Dashboard

Chnage Password

Change Password