📄 admin_admin.php
字号:
<?php
require("notaccess.php");
?><html>
<head>
<title>管理</title>
<link href="css.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body>
<?php
$db=@mysql_connect("localhost","root","micronsky.net") or die("数据库连接失败");
mysql_select_db("vote",$db);
$result=mysql_query("select us,pas from admin",$db);
if ($myrow=mysql_fetch_array($result)) {
?>
<form method="post" action="admin_admins.php">
<table border="1" width="50%" cellpadding="2" cellspacing="0" bordercolordark="#f7f7f7" bordercolorlight="#cccccc" class="css">
<tr>
<td bgcolor="#f7f7f7" colspan="2">登录资料修改</td>
</tr>
<tr>
<td>用户名</td>
<td><input type="text" name="us" size="30" maxlength="30" class="inputt" value="<?php echo $myrow["us"]?>"></td>
</tr>
<tr>
<td>密码</td>
<td><input type="password" name="pas" size="34" maxlength="30" class="inputt" value="<?php echo $myrow["pas"]?>"></td>
</tr>
<tr>
<td colspan="2" bgcolor="#f7f7f7" align="center"><input type="submit" name="submit" value="修改" class="inputt"> <input type="reset" name="reset" value="恢复原值" class="inputt">
</td>
</tr>
</table>
</form>
<?php
}
?>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -