phpmyadmin 데이터베이스에서 특정 값을 검색하려고합니다. 행을 retieve하려면 to=$username
mytasksend 테이블에서. 하지만 변수를 echo 할 때 출력이 나오지 않습니다. 내가 무엇을해야하나요?안드로이드에서 php로 값을 얻을 수없는 이유는 무엇입니까?
여기 내 자바 파일
try{
HttpClient httpclient3 = new DefaultHttpClient();
HttpPost httppost3 = new HttpPost("http://10.0.2.2:80/selection.php");
ArrayList<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
nameValuePairs.add(new BasicNameValuePair("to",id));
Log.w("aaaaaaa",""+nameValuePairs);
httppost3.setEntity(new UrlEncodedFormEntity(nameValuePairs));
HttpResponse response = httpclient3.execute(httppost3);
HttpEntity entity = response.getEntity();
is = entity.getContent();
Log.e("log_tag", "connection success ");
}
감사합니다. – user3256145