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