Gossamer Forum
Home : Products : DBMan : Customization :

Multiple Databases for genealogy

Quote Reply
Multiple Databases for genealogy
Hi, I have been searching for a good Database Engine, and I've found DBMan to be excellent quality. I have tested in on a database of over 8000 records and it works flawlessly.

My problem is that I wanted to create a search engine that would search multiple databases for a given name (ie John Smith), in one go. (ie. 1850 Census Report, Ship Passenger List, Cementary List etc) and produce a lined report of the given name occurences.

I thought at first this may be impossible, if not very very difficult, as each of the databases have varying number of fields.

However, I thought that it might be possible if I simplified the script. As it would be an open to all search engine, there would be no need to use or modify the 'add,delete,edit,modify,login,logoff,or even admin' functions in the script. Just the search query function.

Secondly, the one common field in every database would be the second field storing the name of the individual ie John Smith (the first field begin an id number), and this would be the only available search criteria.

I thought with these limitations it might be possible.

I have make a sort of outline..

First, the user would select various databases to search through checkmarking the boxes, type in an individual in the search field, and press go

The Script would then one by one search each of the selected databases, and return the results all on the same page (for example)

1850 Census Report, Essex County

John Smith, Age 34, Sex:M, farmer...

1645 Passenger List, The Mayflower

John Smith, Age 24, From: England

that's a simplied version of course.

For the programming part of it, I need help.
I assume that I would need a different .cfg script for each database. And I was hoping that the built-in html report template would suffice, since it just uses the field variables in the cfg.
And hopefully, the search function could be put into a loop to search each database one at a time, and then on to the next

How would I implement the check box buttons for each database, and put the search function into a loop that would be based on the databases the user chooses to search.
and then return the results on a single page

To me it seems too easy but I'm definitely not a programmer, so I may be missing some problems that the script would be faced with. Am I oversimplifying things? Can it be done?

Thank you in advance for your help

Trev
Quote Reply
Re: Multiple Databases for genealogy In reply to
I don't know what your ultimate goal is, but at this time DBMAN does not allow "real" relational searches between databases. BUT what you can do is create three different set of files to include:

1) .cfg file
2) .html file

Since you are using different fields in each database, you WILL need to create separate .html files.

But you can use the same default.cgi file.
What you can do is hard-code a search form on a static web page to include the following codes:

Example:

Code:
<form action="/cgi-bin/default.cgi" method="GET">
<input type=hidden name="uid" value="default">
<input type="text" name="keyword">
<input type="checkbox" name="db" value="Name of Database#1"> Names Database
<input type="checkbox" name="db"
value="Name of Database#2"> Report Database
<input type="checkbox" name="db"
value="Name of Database#3"> Origins Database
</form>

Replace Name of Database# with the names of the database files (.db) you have (e.g., names.db, report.db, or origins.db).
This will allow users to search by keyword
in one or all the databases.

I have not tested this exact example. But others have found success with searching through multiple database files. Search this forum for "Multiple Databases" and you should get further information on what you can do with your database project.

Regards,


------------------
Eliot Lee
Founder and Editor
Anthro TECH, L.L.C
http://www.anthrotech.com/
info@anthrotech.com
==========================
Coconino Community College
http://www.coco.cc.az.us/
Web Technology
Coordinator
elee@coco.cc.az.us

[This message has been edited by Eliot (edited July 27, 1999).]