addb.php
来自「辅助radius软件的管理程序web平台下的程序代码自己还没有测试过」· PHP 代码 · 共 31 行
PHP
31 行
<?
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 + =
减小字号Ctrl + -
显示快捷键?