The alamofire library is used in the application, the problem is that the post-request is sent, but it doesn’t work with the get-request, because nothing is displayed in the Xcode console.

$JSON = json_decode(file_get_contents('php://input'),true); $JSON = $JSON['text']; $sql = mysqli_prepare($con, "INSERT INTO `таблица` (`столбец`) VALUES (?)"); mysqli_stmt_bind_param($sql,'s',$JSON); mysqli_stmt_execute($sql); mysqli_stmt_close($sql); 

This is how JSON is received on the server, how to send from the server to applications, there is a swift request, and the server part does not work

  • one
    And where does Swift, if the server part does not work? - Son'ka V

0