Welcome Guest, Not a member yet? Register   Sign In
creating a search for my db
#1

[eluser]alberto24[/eluser]
Happy friday nite everyone Smile

So I'd like to add a search to my web application - basically searching a number of fields in a database. I use CI for the application.

I didn't see anything in the userguide regarding search - is there a search function in CI? I tried looking on google but of course the world search is very generic.

Thanks!
#2

[eluser]darkhouse[/eluser]
There is nothing in the documentation on creating a search because it's really just database communication. You might want to create a search controller that can handle your search. You will need to create a model and write some sql to run your search. And lastly create a view to display your search results. The model is the most important part in this though.
#3

[eluser]alberto24[/eluser]
thanks - i was able to get the search working - now to make a form to pass the user's query to the search...fun sunday coming up!




Theme © iAndrew 2016 - Forum software by © MyBB