Kryptronic Software Support Forum

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.

#1 11-19-2003 03:00:48

Social Smoke
Member
Registered: 09-21-2003
Posts: 39

Multiple Search Fields

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

 

#2 11-19-2003 10:43:43

webmaster
Administrator
From: York, PA
Registered: 04-20-2001
Posts: 19970
Website

Re: Multiple Search Fields

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.


Nick Hendler

Offline

 

Board footer