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 "
---|---|---|---|---|---|---|---|
暂无数据! | - | | - ɾ | +修改| + 删除 | +//onclick在html中的用法是鼠标点击事件执行脚本,onclick是HTML标记对象的一个属性,当鼠标被单击时执行设定要执行的javascript脚本。 +//onclick 属性由元素上的鼠标点击触发。 + +//注释:onclick 属性不适用以下元素: