Browse Source

added Account type to accounts

PabloPuig1 1 year ago
parent
commit
8c929c22be
1 changed files with 2 additions and 1 deletions
  1. 2
    1
      loginUserAdd.php

+ 2
- 1
loginUserAdd.php View File

@@ -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);