The database is much more complex, but lets keep it simple for this example.
Lets say I only have one table named "products" that has the following fields:
The search form has 3 fields:
1. Category (list menu)
2. Vehicle Make (list menu)
3. Keyword (text field)
Here is quick example at: http://monsterbumpers.com/search7.php
Question 1: (Search Form)
Within the dropdown lists "category" and "vehicle make" I've created a select option of "Any" for any category or any make. What should I set the value for these two selections to allow a search through all categories and/or all vehicle makes?
Question 2: (Results Page)
How can I write a query to search by:
- a single variable (ex: search just by 'category' only),
- a combination of variables (ex: 'vehicle make' & 'keyword' only),
- or all of the variables ('category', 'vehicle make' , & 'keyword')
How can I order the results by relevance grouped by category and vehicle_make?