Skip to content

Commit

Permalink
Update modify.php
Browse files Browse the repository at this point in the history
  • Loading branch information
zhblue authored Apr 13, 2022
1 parent e17913e commit ede41b7
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions trunk/web/modify.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,15 +71,17 @@
$email=(htmlentities ($email,ENT_QUOTES,"UTF-8"));
$sql="UPDATE `users` SET"
."`password`=?,"
."`nick`=?,"
."`nick`=?," //删除此行和81行含的,$nick禁用昵称修改
."`school`=?,"
."`email`=?"
."WHERE `user_id`=?"
;
//echo $sql;
//exit(0);
pdo_query($sql,$password,$nick,$school,$email,$user_id);
$sql="update solution set nick=? where user_id=?";
pdo_query($sql,$nick,$user_id);
if($nick!=""){
$sql="update solution set nick=? where user_id=?";
pdo_query($sql,$nick,$user_id);
}
header("Location: ./");
?>

0 comments on commit ede41b7

Please sign in to comment.