update.php

来自「极限网络智能办公系统 Office Automation V3.0官方100%源」· PHP 代码 · 共 46 行

PHP
46
字号
<?
include_once("inc/auth.php");
?>

<html>
<head>
<title>我的帐户</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body class="bodycolor" topmargin="5">

<?
//------------------- 保存 -----------------------
if($BYNAME==$LOGIN_USER_ID)
{
  Message("错误","用户名和别名不能相同");
  Button_Back();
  exit;
}

if($BYNAME!="")
{
   $query="select * from USER where USER_ID!='$LOGIN_USER_ID' and BYNAME='$BYNAME' or USER_ID='$BYNAME'";
   $cursor= exequery($connection,$query);
   if($ROW=mysql_fetch_array($cursor))
   {
     Message("错误","用户名或别名 ".$BYNAME." 已存在");
     Button_Back();
     exit;
   }
}

$query ="update USER set BYNAME='$BYNAME' where USER_ID='$LOGIN_USER_ID'";
exequery($connection,$query);

Message("提示","已保存修改");
?>

<div align="center">
 <input type="button" value="返回" class="BigButton" onClick="location='../'">
</div>

</body>
</html>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?