Suppose I have the following table in a mysql database of my app:
TABLE MANAGER
Now I want to add this checkbox option in android.
And based on the selections I would want to run query in my database.
For example if the user selected NY and NJ, I would run the following query:
SELECT * FROM MANAGER WHERE city = 'NY' OR city = 'NJ'
Again, if the user had selected NY, NJ, LA
Then I would have run the query as
SELECT * FROM MANAGER WHERE city = 'NY' OR city = 'NJ' OR city = 'LA'
How do I make my app choose that by the number of options selected?
I am pretty novice in android, so it would be really a lot of help if someone told me this, or gave me a hint on where to learn this from :)