From 80521371720f83cdbca2b0bcb509767ed07e8184 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E9=91=AB=E4=BB=AA?= <3355466010@qq.com>
Date: Wed, 25 May 2022 00:03:02 +0000
Subject: [PATCH 1/3] =?UTF-8?q?update=20=E6=9D=A8=E9=91=AB=E4=BB=AA/202205?=
=?UTF-8?q?24-php=E5=AD=A6=E7=94=9F=E7=AE=A1=E7=90=86=E7=B3=BB=E7=BB=9F.md?=
=?UTF-8?q?.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...47\256\241\347\220\206\347\263\273\347\273\237.md" | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git "a/\346\235\250\351\221\253\344\273\252/20220524-php\345\255\246\347\224\237\347\256\241\347\220\206\347\263\273\347\273\237.md" "b/\346\235\250\351\221\253\344\273\252/20220524-php\345\255\246\347\224\237\347\256\241\347\220\206\347\263\273\347\273\237.md"
index 233c2ae..cb4cbf6 100644
--- "a/\346\235\250\351\221\253\344\273\252/20220524-php\345\255\246\347\224\237\347\256\241\347\220\206\347\263\273\347\273\237.md"
+++ "b/\346\235\250\351\221\253\344\273\252/20220524-php\345\255\246\347\224\237\347\256\241\347\220\206\347\263\273\347\273\237.md"
@@ -10,6 +10,7 @@ INSERT into user VALUES (1,"陈小龙",98.5),(2,"吴大虫",75.5),(3,"陈得胜"
```
//conn.php
+```php
学生管理系统
-
学生管理系统-首页
@@ -207,4 +201,5 @@ if($ret){
echo "添加成功!返回首页";
}else{
echo "添加失败!";
-}
\ No newline at end of file
+}
+```
\ No newline at end of file
--
Gitee
From 0e82f3896060c2bb5a0ca1c50709fb37894acb2a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E9=91=AB=E4=BB=AA?= <3355466010@qq.com>
Date: Sun, 29 May 2022 12:16:21 +0000
Subject: [PATCH 2/3] 22
---
...73\345\275\225\351\241\265\351\235\242.md" | 245 ++++++++++++++++++
1 file changed, 245 insertions(+)
create mode 100644 "\346\235\250\351\221\253\344\273\252/20220525-php\347\231\273\345\275\225\351\241\265\351\235\242.md"
diff --git "a/\346\235\250\351\221\253\344\273\252/20220525-php\347\231\273\345\275\225\351\241\265\351\235\242.md" "b/\346\235\250\351\221\253\344\273\252/20220525-php\347\231\273\345\275\225\351\241\265\351\235\242.md"
new file mode 100644
index 0000000..c5fa1e9
--- /dev/null
+++ "b/\346\235\250\351\221\253\344\273\252/20220525-php\347\231\273\345\275\225\351\241\265\351\235\242.md"
@@ -0,0 +1,245 @@
+```sql
+CREATE DATABASE student CHARSET utf8;
+use student;
+CREATE table user(
+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);
+```
+```php
+
+
+
+
+ ѧϵͳ¼
+
+
+ѧϵͳ¼
+
+
+
+ҳ";
+}else{
+ echo "¼ʧܣµ¼";
+}
+
+";
+ echo "ص¼
µ¼";
+ die();
+}
+include_once('conn.php');
+$sql = "select * from `user` order by id";
+$result = mysqli_query($conn,$sql);
+?>
+
+
+
+
+ ѧϵͳ
+
+
+
+
+ѧϵͳ-ҳ
+
+
+ |
+ |
+ ɼ |
+ |
+
+ ݣ | ";
+ }else {
+ while ($row = mysqli_fetch_assoc($result)) {
+ ?>
+
+ |
+ |
+ |
+ |
+ ɾ |
+
+
+
+
+
+
+
+
+
+//add.php
+
+
+
+
+
+
+
+
+//edit.php
+
+
+
+
+
+
+
+
+
+
+ҳ";
+}else{
+ echo "ʧܣ";
+}
+
+ҳ";
+}else{
+ echo "ɾʧܣ";
+}
+ҳ";
+}else{
+ echo "ʧܣ";
+}
+```
\ No newline at end of file
--
Gitee
From 354c339d4c4ce22df2066c778456536641037fa7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9D=A8=E9=91=AB=E4=BB=AA?= <3355466010@qq.com>
Date: Sun, 29 May 2022 12:17:21 +0000
Subject: [PATCH 3/3] =?UTF-8?q?update=20=E6=9D=A8=E9=91=AB=E4=BB=AA/202205?=
=?UTF-8?q?25-php=E7=99=BB=E5=BD=95=E9=A1=B5=E9=9D=A2.md.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
...73\345\275\225\351\241\265\351\235\242.md" | 106 +++++++++---------
1 file changed, 53 insertions(+), 53 deletions(-)
diff --git "a/\346\235\250\351\221\253\344\273\252/20220525-php\347\231\273\345\275\225\351\241\265\351\235\242.md" "b/\346\235\250\351\221\253\344\273\252/20220525-php\347\231\273\345\275\225\351\241\265\351\235\242.md"
index c5fa1e9..94f5c76 100644
--- "a/\346\235\250\351\221\253\344\273\252/20220525-php\347\231\273\345\275\225\351\241\265\351\235\242.md"
+++ "b/\346\235\250\351\221\253\344\273\252/20220525-php\347\231\273\345\275\225\351\241\265\351\235\242.md"
@@ -6,7 +6,7 @@ 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
- ѧϵͳ¼
+ 学生管理系统登录界面
-ѧϵͳ¼
+学生管理系统登录界面
@@ -44,11 +44,11 @@ session_start();
$username = 'admin';
$password = '123456';
if($_POST['username']==$username && $_POST['password']==$password){
- echo "¼ɹ";
+ echo "登录成功!";
$_SESSION['username']=$username;
- echo "ҳ";
+ echo "返回首页";
}else{
- echo "¼ʧܣµ¼";
+ echo "登录失败!请重新登录";
}
";
- echo "ص¼
µ¼";
+ echo "登录失败!
";
+ echo "返回登录界面
请重新登录";
die();
}
include_once('conn.php');
@@ -74,29 +74,29 @@ $result = mysqli_query($conn,$sql);
- ѧϵͳ
+ 学生管理系统
-ѧϵͳ-ҳ
+学生管理系统-首页
- |
- |
- ɼ |
- |
+ 编号 |
+ 姓名 |
+ 成绩 |
+ 操作 |
ݣ | ";
+ echo "暂无数据! |
";
}else {
while ($row = mysqli_fetch_assoc($result)) {
?>
@@ -104,8 +104,8 @@ $result = mysqli_query($conn,$sql);
|
|
|
- |
- ɾ |
+ 修改|
+ 删除 |
@@ -115,7 +115,7 @@ $result = mysqli_query($conn,$sql);
}
?>
-
+添加数据
//add.php
@@ -123,24 +123,24 @@ $result = mysqli_query($conn,$sql);
?>
-
+ 添加数据
-
+添加数据
@@ -148,7 +148,7 @@ $result = mysqli_query($conn,$sql);
-
+ 修改数据
-
+修改数据
ҳ";
+ echo "修改成功!返回首页";
}else{
- echo "ʧܣ";
+ echo "修改失败!";
}
ҳ";
+ echo "删除成功!返回首页";
}else{
- echo "ɾʧܣ";
+ echo "删除失败!";
}
ҳ";
+ echo "添加成功!返回首页";
}else{
- echo "ʧܣ";
+ echo "添加失败!";
}
```
\ No newline at end of file
--
Gitee