How To Get Min Id Value And Max Id Value In Mysql Table
This is work_details table. Now I want to retrieve the timeIn and timeOut data from MySQL to android. public void RetrieveTotalHours( final String ID) { class GetHou
Solution 1:
type org.json.JSONArray cannot be converted to JSONObject
Means response JSON String contains JSONArray
of JSONObject
. so convert JSON String to JSONArray then iterate for getting all JSONObjects from it like:
JSONArray array=newJSONArray(json);
JSONObject jsonObject = array.getJSONObject(array.length()-1);
StringMiNtimeIn = jsonObject.optString(Configs.TAG_IN);
StringMaXtimeOut=jsonObject.optString(Configs.TAG_OUT);
Log.e("A",MiNtimeIn);
Log.e("S", MaXtimeOut);
Post a Comment for "How To Get Min Id Value And Max Id Value In Mysql Table"