• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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!


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.