Hi,
I am able to use checkboxes to select specific columns of the table. I am not able to generate the corresponding select statement. I can use if-else statement to generate a large number of select statements to retrieve specific data. However, with large number of checkboxes the number of permutations becomes very large. How can I have one or small number of statements which can take care of all the possible options.
I have a table of cars with id,year,name columns. In order to retrieve different types of information ( such as Id and name only or name and year only or all the three etc...) I can use three checkboxes. But I will need 6 if-else statements with 6 select statements to take into account all possibilities. If I have more checkboxes the possibilities become very large. What should I do to use one or very few select statements.
Thank you very much