Welcome Guest, Not a member yet? Register   Sign In
ci search based on parameters user selects
#3

[eluser]techgnome[/eluser]
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)Wink ... 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


Messages In This Thread
ci search based on parameters user selects - by El Forum - 10-01-2010, 12:02 PM
ci search based on parameters user selects - by El Forum - 10-01-2010, 12:14 PM
ci search based on parameters user selects - by El Forum - 10-01-2010, 12:18 PM
ci search based on parameters user selects - by El Forum - 10-01-2010, 01:05 PM
ci search based on parameters user selects - by El Forum - 10-01-2010, 01:09 PM
ci search based on parameters user selects - by El Forum - 10-01-2010, 03:03 PM



Theme © iAndrew 2016 - Forum software by © MyBB