From fe1a8915399849a0ff40d220877d487f31fd023c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=90=B4=E5=90=AF=E6=98=8C?= <3110587048@qq.com>
Date: Sun, 5 Jun 2022 22:13:12 +0800
Subject: [PATCH] 1
---
...50\345\206\214\351\241\265\351\235\242.md" | 148 ++++++++++++++++++
1 file changed, 148 insertions(+)
create mode 100644 "\345\220\264\345\220\257\346\230\214/20220603-\346\263\250\345\206\214\351\241\265\351\235\242.md"
diff --git "a/\345\220\264\345\220\257\346\230\214/20220603-\346\263\250\345\206\214\351\241\265\351\235\242.md" "b/\345\220\264\345\220\257\346\230\214/20220603-\346\263\250\345\206\214\351\241\265\351\235\242.md"
new file mode 100644
index 0000000..4fe3c41
--- /dev/null
+++ "b/\345\220\264\345\220\257\346\230\214/20220603-\346\263\250\345\206\214\351\241\265\351\235\242.md"
@@ -0,0 +1,148 @@
+``` php
+// com
+
+
+
+
+
+
+
+ 用户登录
+
+
+用户登录
+
+
+
+
+ 重新登录!");
+ }
+
+ echo "登录成功!返回主页";
+
+}
+?>
+```
+
+
+
+``` php
+// 注册 registern
+
+
+
+
+
+
+
+ 用户注册
+
+
+用户注册
+
+
+
+```
+
+
+
+``` php
+// registerns
+ $value){
+ if($key!='提交'){
+ $$key=$value;
+ }
+}
+$hobby = implode(',',$hobby);
+$username = $_POST['username'];
+$password1 = $_POST['password1'];
+$sex=$_POST['sex'];
+$height=$_POST['height'];
+$age=$_POST['age'];
+$address=$_POST['address'];
+$phone=$_POST['phone'];
+$aboutme=$_POST['aboutme'];
+
+
+// 开始使用mysql /1 连接服务器
+include_once ('./com.php');
+
+// 编写SQL语句 注册其实是往数据库表里新增数据 insert
+$sql = "insert into `says` value ('$username','$password1','$sex','$height','$hobby','$age','$address','$phone',null,'$aboutme')";
+//echo $sql;
+// 执行上面的SQL语句
+$result = mysqli_query($com,$sql);
+// 判断
+if($result){
+ echo "注册成功。请登录!";
+}else{
+ die("注册失败。".mysqli_error($com));
+}
+```
+
+``` php
+// index 主页
+