0

I have a doubt actually regarding volley in android. I know how to fetch data from sql server database through php code which does not take any data from the android app like

  select * from table;

and if I'd like to fetch data from database with php code containing statements like

select * from tablename where field1='something';

I need to send data from android app to php. Can we actually do it using Volley. If so please tell me how to send data to php file from android.

2 Answers2

0

HTTP library that you are using is not relevant in this problem. You need to allow for data input in PHP script. Either by POST or GET variables. (look at this tutorial http://www.tutorialspoint.com/php/php_get_post.htm)

In terms of creating request with proper parameters take a look at this question: Volley - POST/GET parameters

Community
  • 1
  • 1
Adam
  • 873
  • 7
  • 33
  • Actually i have gone through what u have posted methods there are two methods called createMyReqSuccessListener(), createMyReqErrorListener(). Can u tell me what are those. – mopuri nowshad Jan 21 '16 at 18:28
0

Sure you can.

Follow the official Volley guide, here

TheSunny
  • 371
  • 4
  • 14