📄 addb.php
字号:
<?
include "../check.php"
?>
<?
include "../sql.php"
?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head>
<body>
<?
$sql="select * from admin where operator='$textfield2'";
$reslut=mysql_query($sql);
echo mysql_error()."<br>";
if ($row=mysql_fetch_row($reslut))
{
echo "登陆帐号已存在,添加失败!";
}
else
{
$sql="insert into admin (operator,password,name) values ('$textfield2','$textfield3','$textfield')";
mysql_query($sql);
echo "管理员添加成功!";
}
?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -