title: Multiple connection between android and php
body: <p>I have a dynamic table in database and every time when there is a new insert I need to do some calculs and send the data to android , so I know how to do the connection between android and php but how can I make android do a multiple check to php file so it can show the data ?</p>
  
  <pre><code> private void loadProducts() {
  
      StringRequest stringRequest = new StringRequest(Request.Method.GET, URL_PRODUCTS,
              new Response.Listener&lt;String&gt;() {
                  @Override
                  public void onResponse(String response) {
                      try {
                          // converting the string to json array object
                          JSONArray products = new JSONArray(response);
  
                          // traversing through all the object
                          for (int i = 0; i &lt; products.length(); i++) {
  
                              // getting product object from json array
        JSONObject productObject = products.getJSONObject(i);
                 int Temp_dt = productObject.getInt("Temp_dt");
                   int BusNumber = productObject.getInt("BusNumber");
                      Product product = new Product(Temp_dt, BusNumber);
  
                              // adding the product to product list
                              productList.add(product);
                          }
  
        adapter = new ProductsAdapter(WaitingActivity.this, productList);
                          recyclerView.setAdapter(adapter);
                      } catch (JSONException e) {
                          e.printStackTrace();
                      }
                  }
              },
              new Response.ErrorListener() {
                  @Override
                  public void onErrorResponse(VolleyError error) { Toast.makeText(WaitingActivity.this, error.getMessage(), Toast.LENGTH_SHORT).show();
                  }
              });
  </code></pre>
  
  <p>I expect to show the data when there is a new insert but it show just what exist in data table and if there is a new inser I need to entre again to the activity so it can show what i want.</p>