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