0) { $con=mysql_query("update admin set password='".($_POST['newpassword'])."', updationDate='$currentTime' where username='".$_SESSION['alogin']."'"); $_SESSION['msg']="Password Changed Successfully !!"; } else { $_SESSION['msg']="Old Password not match !!"; } } ?>