How do I increment database's variable by 1 each time a radio button is selected?
How do I increment database's variable by 1 each time a radio button is selected?
You need to know the counter's current value. Do a POST, with increasing the value by one.
What is a POST?
POST is a request to create data in a database. In your case, you would actually need to do a PUSH as you are updating existing data.
Appery.io database is cloud-based and works via REST APIs.
I'd highly recommend you start with this:
http://docs.appery.io/getting-started
then try a few of our tutorials:
http://docs.appery.io/tutorials
then try a few database tutorials:
http://docs.appery.io/tutorials/#Appe...
I've look through the tutorial and tried out some of them, I did not find any that's on update_service specifically and I can't seem to get the put method work. Is there a tutorial specifically on how to set up the put method or update service?