Jump to content

Recommended Posts

Wasn't sure exactly where to post this question:

 

I was wondering if anybody knows where I can find a good tutorial on how to set up a "narrow results" script in php? I'm sure it's pretty easy, but I'm still getting the hang of searches, so I'm looking for anything that helps beat it into my brain. :)

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/210886-how-to-narrow-results/
Share on other sites

Ah, sorry.

 

When the user uses a form to query the database and pull results, I want to place options for them to narrow the search results by. I've got searches, but I don't know how to make it just search their results, instead of the entire database.

 

For example, their first search is for Red Hyundai cars. Then, if that gives them 100 choices, they can narrow the results by car model.

 

Maybe I'm getting ahead of myself. I was just hoping there was a tutorial somewhere I could reference before bothering the forum with a hundred questions, because I'm so new at this.

 

 

yes... you are right... is a lot of examples in the net/forums to solve what do you want...

 

basically your form should include all the possibles search criteria that allow you to filter the final query results... in some cases you can use form fields which values depend on the value of previous field and they are populated querying the database also.

 

search around this forum and others and you will find examples. 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.