You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Hey guys,
This is my first post to the Mods & Hacks page, kinda excited. j/k Anyways, I was just wondering how hard it would be to code in the ability to have muliple search fields. For instance Search by background cclor, boarder color, type, keyword, etc. I am about to begin site development for a oriental rug gallery and I need to be able to let users search for rugs by a specific designation.
For example, one rug might have a black boarder, and green background, another one might have a green boarder and a black background. As the code is written right now, i can put green and black as keywords to search for each rug. However, if someone wanted a rug with a black boarder and searched for it now, they would also get both rugs instead of the first one.
Instead I would like to be able to have the user selcect by either using a link or a radio button to designate what they were looking for.
Any Ideas?
Thanks,
Ali
Offline
Check this mod out on searching with min/max prices:
Your code would be a bit easier to write as you're not doing < and > logic, just LIKE matches on fields presented. All the other principles are the same, though.
Offline