post update
This commit is contained in:
parent
5c7661e2d6
commit
530d1ae8ec
|
@ -2,8 +2,7 @@
|
|||
|
||||
$con = mysqli_connect("192.168.80.31", "root", "secret", "db");
|
||||
|
||||
$rawData = file_get_contents('php://input');
|
||||
$data = json_decode($rawData, true);
|
||||
$data = json_decode(file_get_contents('php://input'), true);
|
||||
|
||||
$kw = "INSERT INTO Persons (LastName, FirstName, Email, Subject, Path) VALUES ('{$data['ln']}', '{$data['fn']}', '{$data['email']}', '{$data['subject']}', '{$data['path']}')";
|
||||
$ans = mysqli_query($con, $kw);
|
||||
|
|
Loading…
Reference in New Issue