D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
realadss
/
gurgaon.jaipurpartyplanner.in
/
admin
/
Filename :
passchange.php
back
Copy
<?php include('include/header.php'); $new = $_POST['new']; $id = $_POST['id']; $sql = "UPDATE `admin` SET `password`='$new' WHERE Name = '$id'"; $query = mysqli_query($conn, $sql); // echo $sql; // die(); if($query){ echo" <script> alert('Password Changed Successfully'); window.location.href= 'logout.php'; </script>"; }else{ echo" <script> alert('Something Went Wrong'); window.location.href= 'index.php'; </script>"; } ?>