I need to pass data list to server using volley and access that data using PHP. From android application I need to pass all the data in one table and access that data on server. You can think of it as a passing data in shopping cart to the server.

I can get the data from database as a list. I need to submit data to server and access it.

```
RequestQueue queue = Volley.newRequestQueue(getApplicationContext());
StringRequest request = new StringRequest(Request.Method.POST, NetworkHandler.ORDER, new Response.Listener<String>() {
    @Override
    public void onResponse(String response) {
        try{
            Log.d(LogMessages.ORDER_CONFIRM,response.toString());
        }
        catch(Exception ex){
            Toast.makeText(getApplicationContext(), ex.toString(), Toast.LENGTH_SHORT).show();
        }
    }
}, new Response.ErrorListener() {
    @Override
    public void onErrorResponse(VolleyError error) {
        Toast.makeText(getApplicationContext(), error.toString(), Toast.LENGTH_SHORT).show();
    }
}) {
    @Override
    protected Map<String, String> getParams() throws AuthFailureError {
        List<Food> listCart = db.getAllCartItems();
        Map<String, String> parameters = new HashMap<String, String>();
        parameters.put("orderitems",listCart .toString());
        return parameters;
    }
};
request.setRetryPolicy(new DefaultRetryPolicy(DefaultRetryPolicy.DEFAULT_TIMEOUT_MS * 2, DefaultRetryPolicy.DEFAULT_MAX_RETRIES*2, DefaultRetryPolicy.DEFAULT_BACKOFF_MULT));
queue.add(request);

```