Browse Source

added Account type to accounts

PabloPuig1 2 years 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
 $encodedData=file_get_contents('php://input');
24
 $encodedData=file_get_contents('php://input');
25
 $decodedData=json_decode($encodedData, true);
25
 $decodedData=json_decode($encodedData, true);
26
 
26
 
27
+$addAccType=$decodedData["ACC"];
27
 $addName=$decodedData["name"];
28
 $addName=$decodedData["name"];
28
 $addEmail=$decodedData["email"];
29
 $addEmail=$decodedData["email"];
29
 $addPhone=$decodedData["phone"];
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
 mysqli_query($connection, $queryAddUser);
33
 mysqli_query($connection, $queryAddUser);
33
 // $stmtAdd = mysqli_prepare($connection, $queryAddUser);
34
 // $stmtAdd = mysqli_prepare($connection, $queryAddUser);
34
 // mysqli_stmt_execute($stmtAdd);
35
 // mysqli_stmt_execute($stmtAdd);