Welcome Guest, Not a member yet? Register   Sign In
Running a Basic Search
#1

[eluser]TG JoE[/eluser]
Could not find any kind of tutorial on Google or here about just doing a basic search of the database. Which, I guess I need a little more than just a basic search.

Here's my problem, I know I could write this thing the long way, but I like doing things the right way. Especially when using CodeIgniter!

I've got 4 fields in a database. fname, lname, city and state. All I want to be able to do is when someone searches on any of those things, it bounces them to a page with results. Super simple, but couldn't find anything on it.

The long way would be grabbing each field variable, running the combinations and having like 12 query strings in my model. Is there a shorter way to construct the model? The "right" way, as it were.

Any help would be greatly appreciated. Thanks!


Messages In This Thread
Running a Basic Search - by El Forum - 09-12-2010, 11:15 PM
Running a Basic Search - by El Forum - 09-13-2010, 03:28 AM
Running a Basic Search - by El Forum - 09-13-2010, 05:49 AM
Running a Basic Search - by El Forum - 09-13-2010, 07:00 AM
Running a Basic Search - by El Forum - 09-13-2010, 08:29 AM
Running a Basic Search - by El Forum - 09-13-2010, 06:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB