Welcome Guest, Not a member yet? Register   Sign In
How to search ALOT of fields?
#1

[eluser]trope[/eluser]
I need to have a search feature on my site.

I have over 20 fields that the user can search by ( ie. first name, last, email, city, etc )

I am confused as to how to approach this.

Is this the correct way?

Code:
MODEL:
------

function search($fName = '', $lName = '' .. etc ){}

and from my view just pass all the values from the search form?


I don't need actual code, ( although would be HIGHLY appreciated ) , I just need a small example of how to approach searching so many fields.

Thank you!




Theme © iAndrew 2016 - Forum software by © MyBB