How to write PHP (server side) to receive JSON then insert into DB using Android.
I wrote Java to send data to the PHP server :
HttpPost httpPost = new HttpPost("http://sit-edu4.sit.kmutt.ac.th/csc498/51270372/[My Folder].[My filename].php");
But I do not know how to write the PHP file to receive JSON then insert to DB.
Could you please help me ? Thank you.
You have your JSON data somewhere in
$_POSTarray.You can decode the JSON like this: