Gossamer Forum
Home : Products : DBMan : Customization :

> Multiple Database Files

Quote Reply
> Multiple Database Files
I like to do the following:
I want to have different categories and I like to have for every category a own *.db file. > The "Field Names" are in every database file the same !!! < Also I would like to give the user the option to search in every database file.
But normaly a user would select a category to search in and than some other search options. Now the program should depending on with category you have selected search in that *.db file that belongs to that category.

Can anybody help me?

PS.: Thanks a lot to everybody how ever helped me. It is a very good help to me. And I learned really a lot about Perl and how the Perl Scipts work.
Quote Reply
Re: > Multiple Database Files In reply to
The easiest thing to do is use radio buttons for each database like the following:

Code:
<input type="radio" name="db" value="database1">Database 1
<input type="radio" name="db" value="database2">Database 2
<input type="radio" name="db" value="database3">Database 3

You would put these codes in your sub html_view_search.

Delete the following form codes:

Code:
<input type="hidden" name="db" value="$db_setup">

For more information on multiple databases, please do the following:

1) Search this forum more thoroughly for Threads that address multiple databases.

2) Check out the Relational Database Tutorial/Mod at the following URL:

www.jpdeni.com/dbman/Mods/relational.txt

Regards,

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