From 7f01d9b0bea038afdbc97153e401d0ff3cd77dd7 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, 5 Jun 2022 16:14:30 +0000
Subject: [PATCH 1/2] 22
---
...hp\347\211\265\346\211\213\347\275\221.md" | 167 ++++++++++++++++++
1 file changed, 167 insertions(+)
create mode 100644 "\346\235\250\351\221\253\344\273\252/20220605-php\347\211\265\346\211\213\347\275\221.md"
diff --git "a/\346\235\250\351\221\253\344\273\252/20220605-php\347\211\265\346\211\213\347\275\221.md" "b/\346\235\250\351\221\253\344\273\252/20220605-php\347\211\265\346\211\213\347\275\221.md"
new file mode 100644
index 0000000..f87ab5e
--- /dev/null
+++ "b/\346\235\250\351\221\253\344\273\252/20220605-php\347\211\265\346\211\213\347\275\221.md"
@@ -0,0 +1,167 @@
+``` mysql
+create database qianshou charset utf8;
+use qianshou;
+create table user(
+ id int primary key auto_increment,
+ username varchar(10) not null,
+ password varchar(20) not null,
+ sex varchar(2) not null,
+ height double not null,
+ hobby varchar(30) not null,
+ age int not null,
+ address varchar(30),
+ phone int not null,
+ photo BLOB,
+ aboutme varchar(30)
+)
+```
+
+``` php
+//conn.php
+
+
+
+
+
+
+
+ 用户登录
+
+
+
+
+
+```
+``` html
+
+
+
+
+
+ 牵手网注册
+
+
+用户注册
+
+
+
+```
+ $value){
+ if($key!='提交'){
+ $$key=$value;
+ }
+}
+$hobby = implode(',',$hobby);
+
+
+
+include_once ('./conn.php');
+
+
+$sql = "insert into `user` value (null,'$username','$password1',$sex,'$height','$hobby','$age','$address','$phone',null,'$aboutme')";
+
+$result = mysqli_query($conn,$sql);
+
+if($result){
+ echo "注册成功。请登录!";
+}else{
+ die("注册失败。".mysqli_error($conn));
+}
+```
+```php
+
+
+
+
+
+
+
+ 用户登录
+
+
+
+
+
+```
+``` php
+重新登录");
+ }
+ echo "登录成功登入首页";
+```
\ No newline at end of file
--
Gitee
From aacd20eaa0d6e0d7a15d164488de0d0468a18879 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, 5 Jun 2022 16:16:47 +0000
Subject: [PATCH 2/2] =?UTF-8?q?update=20=E6=9D=A8=E9=91=AB=E4=BB=AA/202206?=
=?UTF-8?q?05-php=E7=89=B5=E6=89=8B=E7=BD=91.md.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../20220605-php\347\211\265\346\211\213\347\275\221.md" | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git "a/\346\235\250\351\221\253\344\273\252/20220605-php\347\211\265\346\211\213\347\275\221.md" "b/\346\235\250\351\221\253\344\273\252/20220605-php\347\211\265\346\211\213\347\275\221.md"
index f87ab5e..98913ee 100644
--- "a/\346\235\250\351\221\253\344\273\252/20220605-php\347\211\265\346\211\213\347\275\221.md"
+++ "b/\346\235\250\351\221\253\344\273\252/20220605-php\347\211\265\346\211\213\347\275\221.md"
@@ -99,6 +99,7 @@ mysqli_query($conn,'set names utf8');