<?php
/**
* Created by PhpStorm.
* User: Administrator
* Date: 2019/3/23
* Time: 11:06
*/
require_once ("conn.php");
?>
<html>
<head>
<title>PHP成绩查询系统</title>
<link rel="stylesheet" href="css/table.css">
<link rel="stylesheet" href="css/center.css">
<script type="text/javascript">
function chkinput(form)
{
if(form.name1.value == "")
{
form.name1.style.backgroundColor = "red";
form.name1.select();
return false;
}
if(form.age1.value == "")
{
form.age1.style.backgroundColor = "red";
form.age1.select();
return false;
}
if(form.result1.value =="")
{
form.result1.style.backgroundColor = "red";
form.result1.select();
return false;
}
return true;
}
</script>
</head>
<body>
<form name="form1" method="post" action="saveupdate.php" onsubmit="return chkinput(this)">
<table class="table1">
<caption>更新个人成绩列表</caption>
<tr>
<th>序号</th>
<th>姓名</th>
<th>年龄</th>
<th>成绩</th>
<th>操作</th>
</tr>
<?php
$ID = $_GET['id'];
$sql = mysqli_query($conn,"SELECT * FROM websql WHERE id='".$ID."'");
while($info1=mysqli_fetch_array($sql))
{
echo "<tr>";
echo "<td>".$info1['id']."</td>";
echo "<input type='hidden' name='id1' id='id1' value='".$info1['id']."' size='16'>";
echo "<td><input type='text' name='name1' id='name1' value='".$info1['name']."' size='16'></td>";
echo "<td><input type='text' name='age1' id='age1' value='".$info1['age']."' size='16'></td>";
echo "<td><input type='text' name='result1' id='result1' value='".$info1['result']."' size='16'></td>";
echo "<td> </td>";
echo "</tr>";
}
?>
<tr>
<td colspan="5" class="aline_center"><input type="submit" name="button" id="button" value="更新">
<input type="reset" name="button2" id="button2" value="重 置"></td>
</tr>
</table>
<div class="divbanner"><a href="index.php">返回首页</a></div>
</form>
</body>
</html>
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
ScoreQuery.zip (16个子文件)
ScoreQuery
css
table.css 1KB
center.css 319B
saveupdate.php 420B
index.php 1KB
update.php 3KB
del.php 2KB
detail.php 1KB
add.php 2KB
saveadd.php 393B
.idea
misc.xml 174B
modules.xml 272B
ScoreQuery.iml 281B
workspace.xml 12KB
inspectionProfiles
sql
mydb.sql 9KB
conn.php 350B
savedel.php 300B
共 16 条
- 1
资源评论
- 小猿网2023-04-14跑不起来的
虾米大王
- 粉丝: 1231
- 资源: 94
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功