I've tried a couple days in g*ogle to find any good tutorial how to do.
But until now, I have not find yet.
I have a json in android :
[
{
"id": "1",
"nilai": "1"
},
{
"id": "2",
"nilai": "1"
},
{
"id": "3",
"nilai": "1"
},
{
"id": "4",
"nilai": "1"
},
{
"id": "5",
"nilai": "1"
}
]
And the String is looped the id and nilai for five times, then I want to send this json to server when button pressed.
The database i want to store looks like :
|---|-----|
| ID|Nilai|
|---|-----|
| 1 | 1 |
| 2 | 1 |
|...| ... |
Any suggest or idea? I do not mind if you help answer with a code that you have on your application, at least the code can help me
I could not try the code how to do, due to limited understanding of the android and php programming myself, but I can try the code when I have a reference or examples of similar cases