瀏覽代碼

added Account type to accounts

PabloPuig1 2 年之前
父節點
當前提交
8c929c22be
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      loginUserAdd.php

+ 2
- 1
loginUserAdd.php 查看文件

@@ -24,11 +24,12 @@ header('Content-Type: application/json');
24 24
 $encodedData=file_get_contents('php://input');
25 25
 $decodedData=json_decode($encodedData, true);
26 26
 
27
+$addAccType=$decodedData["ACC"];
27 28
 $addName=$decodedData["name"];
28 29
 $addEmail=$decodedData["email"];
29 30
 $addPhone=$decodedData["phone"];
30 31
 
31
-$queryAddUser = "INSERT INTO users (name, email, phone_num) VALUES ('$addName', '$addEmail', '$addPhone')";
32
+$queryAddUser = "INSERT INTO users (acc_type, name, email, phone_num) VALUES ('$addAccType', '$addName', '$addEmail', '$addPhone')";
32 33
 mysqli_query($connection, $queryAddUser);
33 34
 // $stmtAdd = mysqli_prepare($connection, $queryAddUser);
34 35
 // mysqli_stmt_execute($stmtAdd);