I have many checkboxes in my activity. What i want to do is when i click on any one of the checkbox then the relevant search should be made in the database and the value should be retrived considering the value of the checkbox.
for eg. if i have checked the first checkbox only then
if(chk1.ischecked){
str="yes";
}
so my query will be
select * from database where abc="yes";
But what if i have checked 2 or more checkboxes the query changes.
select * from database where abc="yes" and pqr="yes";
There can be many permutation and combinations for these 10 checkboxes. What can be the easiest way by which i can make my search work.