1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
<? include("configure.php");
$userid = $_POST["userid"]; $password = $_POST["password"];
$sql = "update SYS_STAFF set "; $sql .= "password = md5('$password')"; $sql .= "where userid='$userid' ";
//echo $sql;
$result = mysql_query($sql); if (!$result) { header("Location: main.php?msg=Invalid query: ' . mysql_error()"); } else { header("Location: main.php?msg=Update Successful"); } ?>
|