D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
grandhou
/
www
/
admin
/
Filename :
updateuser.php
back
Copy
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Grand House</title> </head> <body> <?php include("include/config.php"); date_default_timezone_set('Asia/Kolkata');// change according timezone $currentTime = date( 'd-m-Y h:i:s A', time () ); $Id = $_POST['txtUserId']; $Name = htmlspecialchars($_POST['txtUserName'], ENT_QUOTES, 'UTF-8'); $Password=md5($_POST['txtPass']); $sql = mysql_query("Update admin set username='".$Name."',password='".$Password."' where id=".$Id.""); echo '<script type="text/javascript">alert("User Updated Succesfully");window.location=\'user.php\';</script>'; ?> </body> </html>