update.php

来自「通达网络办公 - Office Anywhere 2008 增强版100%源码(」· PHP 代码 · 共 27 行

PHP
27
字号
<?php

include_once( "inc/auth.php" );
echo "\r\n<html>\r\n<head>\r\n<title>我的帐户</title>\r\n<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n</head>\r\n\r\n<body class=\"bodycolor\" topmargin=\"5\">\r\n\r\n";
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( "提示", "已保存修改" );
echo "\r\n<div align=\"center\">\r\n <input type=\"button\" value=\"返回\" class=\"BigButton\" onClick=\"location='index.php'\">\r\n</div>\r\n\r\n</body>\r\n</html>\r\n";
?>

⌨️ 快捷键说明

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