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 ac33d0bda4ee686fd5581739ea87b95b842f64c6..7bcc3b96562091d25d007a4473d341cf05598724 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 属性不适用以下元素:
、、、
ɼ编号姓名成绩操作
ݣ
暂无数据!
޸| - ɾ修改| + 删除