芝麻web文件管理V1.00
编辑当前文件:/home/krishnamexports/public_html/accounts.php
Hello
ACCOUNT DETAILS
ORDERS
LOGOUT
".$_SESSION['successMsg']; unset($_SESSION['successMsg']);}?>
ACCOUNT DETAILS
Full Name
Mobile
Email Addres
Save Changes
".$_SESSION['successMsg2']; unset($_SESSION['successMsg2']);}?>
CHANGE PASSWORD
Current Password
New Password
Confirm Password
Save Changes
Success!
Profile Successfully Updated.
'; } else { $_SESSION['successMsg'] = '
Warring !
Sorry, something went wrong. Try Again.
'; } header("location:".$_SERVER['REQUEST_URI']); } if(isset($_POST['change'])) { $password = $_POST['password']; $npassword = $_POST['npassword']; $cpassword = $_POST['cpassword']; if($npassword==$cpassword) { $password = $password; $sqlUser = mysqli_query($cn, "select `id` from tbl_register where `id`='".$_SESSION['KXloginId']."' and `password`='".$password."'")or die(mysql_error("login issue")); if(mysqli_num_rows($sqlUser)>0) { $sqlUserData = mysqli_fetch_array($sqlUser); mysqli_query($cn, "update tbl_register SET `password`='".$npassword."' where `id`='".$sqlUserData['id']."'"); $_SESSION['successMsg2'] = '
Success!
Password Change Successfully.
'; } else { $_SESSION['successMsg2'] = '
Danger!
Current Password Not Matched.
'; } } else { $_SESSION['successMsg2'] = '
Danger!
New and confirm Password Not Matched.
'; } header("location:".$_SERVER['REQUEST_URI']); } ?>