You need to send data from the android application and put it in the site database. How can this be implemented?
Closed due to the fact that the question is too common for participants Yuriy SPb ♦ , aleksandr barakin , user194374, Denis , Kromster 16 Jul '16 at 15:58 .
Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .
- oneuh ........ what did you use? - xAqweRx
- Write a php script that takes the necessary parameters in the form of strings and puts them into the database via PDO. From the application, send a request to this script with the necessary parameters - YuriySPb ♦
|
1 answer
Once developed an application that sent data from the phone to the server, and there it was already processed. We had this implementation:
- The phone collects the necessary information and generates a JSON object for sending.
- We send a POST request to the server, where it is processed by a PHP script.
Used this example.
|