From f0167579b224147a6c01f695652a74c639f126cd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E6=BB=A1=E5=A9=B7?= <2381596189@qq.com>
Date: Tue, 24 May 2022 23:36:57 +0800
Subject: [PATCH] ok
---
...45\210\240\357\274\214\346\224\271.md.txt" | 17 +-
...46\347\224\237\347\263\273\347\273\237.md" | 265 ++++++++++++++++++
2 files changed, 281 insertions(+), 1 deletion(-)
create mode 100644 "\345\274\240\346\273\241\345\251\267/2022052\345\255\246\347\224\237\347\263\273\347\273\237.md"
diff --git "a/\345\274\240\346\273\241\345\251\267/20220523php\345\242\236\357\274\214\345\210\240\357\274\214\346\224\271.md.txt" "b/\345\274\240\346\273\241\345\251\267/20220523php\345\242\236\357\274\214\345\210\240\357\274\214\346\224\271.md.txt"
index 2313ac3..fa4fe23 100644
--- "a/\345\274\240\346\273\241\345\251\267/20220523php\345\242\236\357\274\214\345\210\240\357\274\214\346\224\271.md.txt"
+++ "b/\345\274\240\346\273\241\345\251\267/20220523php\345\242\236\357\274\214\345\210\240\357\274\214\346\224\271.md.txt"
@@ -57,6 +57,15 @@ mysqli connect(服务器地址用户名,密码数据库名,端口号socket);
## 作业
```php
+use student;
+
+create table user(
+user_id int primary key auro_increment,
+user_name varchar(20) not null,
+user_score decimal(3,1) not null
+);
+
+
4";
mysqli_query($sjk,$san)or die("数据删除错误");
@@ -92,8 +102,13 @@ mysqli_error($sjk);//防止乱码
//查找数据
$cha="select * from `user` where id=3";
-mysqli_query($sjk,$cha)or die ("查找数据错误");
+$chazhao=mysqli_query($sjk,$cha)or die ("查找数据错误");
mysqli_error($sjk);
+while ($a = mysqli_fetch_assoc($chazhao)) {
+ echo $a['id'] . " " . $a['name'] . " " . $a['score'] . "
";
+}
+
+
```
diff --git "a/\345\274\240\346\273\241\345\251\267/2022052\345\255\246\347\224\237\347\263\273\347\273\237.md" "b/\345\274\240\346\273\241\345\251\267/2022052\345\255\246\347\224\237\347\263\273\347\273\237.md"
new file mode 100644
index 0000000..4614fb5
--- /dev/null
+++ "b/\345\274\240\346\273\241\345\251\267/2022052\345\255\246\347\224\237\347\263\273\347\273\237.md"
@@ -0,0 +1,265 @@
+```php
+use student;
+
+create table user(
+user_id int primary key auro_increment,
+user_name varchar(20) not null,
+user_score decimal(3,1) not null
+);
+
+$tj="insert into user (name,score) value ('陈小龙','98.5'),('吴大虫','75.5'),('陈得胜','66')";
+$cxl=mysqli_query($sjk,$tj);
+```
+
+
+
+```PHP
+
+
+
+
+
+
+
+
学生编号 | +学生姓名 | +学生成绩 | +操作 | +暂无数据! | ";//colspan合并为一列 + }else { + while ($row = mysqli_fetch_assoc($jgj)) {//从结果集中取得一行作为关联数组 + ?> +
---|---|---|---|
+ | + | + + | 修改| + 删除 | +