Welcome Guest, Not a member yet? Register   Sign In
how to display search results in the same page


can i display the search results in the same page?

i have many fields like first_name, last_name, etc...

when i enter some values and click the search button, i should see the search results in the same page, below the textboxes (first_name, last_name etc...)

can we do that?

I think you have a page where a list of record displayed. And top of the page you have search features(few text boxes). Now you like to display those records when someone entry some keyword (into text box) and submit.
If this is the case you just need to apply trick in your model.

That is, when the page load first time it have no condition(mysql: no where condition). But when the page submitted add where condition inside your model.

Hope i got your problem.

Theme © iAndrew 2016 - Forum software by © MyBB