Gossamer Forum
Home : Products : DBMan : Customization :

multiple field search

Quote Reply
multiple field search
How can I design a multifield search engine on DBman's db ?

For example
I have a db file about our friends (friend.db).

It have 5 fields (name, sex, age, height, weight)

I want a search result such as
'sex=male and/or age=20 and/or height=170'.

How can I do it ?





------------------
Thank you.
Quote Reply
Re: multiple field search In reply to
Well, it is quite simple. It is like creating any other type of web form. (Keep in mind, however, that DBMAN does not have true Boolean - And/Or search options. But you can set up a multi field search form.)

Just add codes like the following to your search form fields found either in sub html_record or sub view_search routines in the html.pl file:

Code:
Sex: <input type="text" name="Sex" size="40">
Age: <input type="text" name="Age" size="40">
Height: <input type="text" name="Height" size="40">

Change the value between the quotes in the following codes: name="", to the name of the fields in your default.cfg file.

Hope this helps you.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------