From 28ee2de34acf99a8bf6f232ea89b8ce1f41cdbce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B1=A4=E4=BA=A6=E5=87=A1?= <1044020597@qq.com> Date: Wed, 25 May 2022 00:51:45 +0000 Subject: [PATCH 1/2] =?UTF-8?q?update=20=E6=B1=A4=E4=BA=A6=E5=87=A1/202205?= =?UTF-8?q?24-php=E7=BD=91=E9=A1=B5=E5=88=B6=E4=BD=9C.md.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...21\351\241\265\345\210\266\344\275\234.md" | 125 +++++++++--------- 1 file changed, 66 insertions(+), 59 deletions(-) diff --git "a/\346\261\244\344\272\246\345\207\241/20220524-php\347\275\221\351\241\265\345\210\266\344\275\234.md" "b/\346\261\244\344\272\246\345\207\241/20220524-php\347\275\221\351\241\265\345\210\266\344\275\234.md" index ac33d0b..7bcc3b9 100644 --- "a/\346\261\244\344\272\246\345\207\241/20220524-php\347\275\221\351\241\265\345\210\266\344\275\234.md" +++ "b/\346\261\244\344\272\246\345\207\241/20220524-php\347\275\221\351\241\265\345\210\266\344\275\234.md" @@ -6,50 +6,53 @@ id int PRIMARY key auto_increment, name VARCHAR(20) not null, score DECIMAL(5,2) not null ); -INSERT into user VALUES (1,"С",98.5),(2,"",75.5),(3,"µʤ",66); +INSERT into user VALUES (1,"陈小龙",98.5),(2,"吴大虫",75.5),(3,"陈得胜",66); ``` ```php //conn.php - ѧϵͳ + 学生管理系统 -

ѧϵͳ-ҳ

+

学生管理系统-首页

- - - - + + + + "; + // 循环之前可以做个判断,结果集是否为空。 + if(!mysqli_num_rows($result)) {//mysqli_num_rows() 函数返回结果集中行的数量。 + echo ""; }else { while ($row = mysqli_fetch_assoc($result)) { ?> @@ -57,15 +60,19 @@ $result = mysqli_query($conn,$sql);//ִ - + +//onclick在html中的用法是鼠标点击事件执行脚本,onclick是HTML标记对象的一个属性,当鼠标被单击时执行设定要执行的javascript脚本。 +//onclick 属性由元素上的鼠标点击触发。 + +//注释:onclick 属性不适用以下元素:
、、、
ɼ编号姓名成绩操作
ݣ
暂无数据!
޸| - ɾ修改| + 删除