Does php receive json data sent by android? & Lt ;? Php $ response & nbsp; = & nbsp; array (); include ("conn. php "); $ conn = mysql_open (); $ SQL & nbsp; = mysql_query ('set & nbsp; names & nbsp; utf php receives json data sent by android?
$ Response = array ();
Include ("conn. php ");
$ Conn = mysql_open ();
$ SQL = mysql_query ('set names utf8 ');
Mysql_query ($ SQL );
If (isset ($ _ POST ['name']) {...... Why does the system prompt an undefined name? Name is the android json php sent by android.
------ Solution --------------------
Reference:
Reference: Aren't you using json? What is the content you sent? How do you know this? what is the error message? This is a prompt. thank you for your prompt. Android end
Params. add (new BasicNameValuePair ("name", name ));
JSONObject json = jsonParser. makeHttpRequest (url_u ......
Check whether the name is obtained. you can save the value to the file. Because the Android program calls your php file as soon as it is opened, and you open the file again, it must have been copied.