[eluser]ravindral[/eluser]
Thats good idea what you said. It didnt came in my mind at all
Also i would like to see
how to build the query depending upon number of parameters but please note any parameter can be or cant be selected by user.
Thank you.
[quote author="techgnome" date="1285975109"]Make sure that on the search form the default unselected value is something that is testable (like 0, or -1, or blank). Then you test the values from the post ($this->input->post('name of field)
... after the form is submitted... if it isn't the default value you specified, then it the value is selected. From there you can incorporate it into your query.
Or was the question more from a "How do I build the query?" kind of a question?
I have an example of that... but I can't get to it right this second... I'll post it when I get home.
-tg[/quote]