Home : Products : DBMan SQL : Discussion :

Products: DBMan SQL: Discussion: Re: one database multiply html: Edit Log

Here is the list of edits for this post
Re: one database multiply html
Well if ya want the code to work you will need:

Code:
if ($IN->param('db') eq "somedatabase") {
require "/full/path/to/somedatabase.pl";
}
elsif ($IN->param('db') eq "somethelse") {
require "/full/path/to/somethelse.pl";
}
else {
require "/full/path/to/default.pl";
}

All you need to change is the path to the .pl file and the database name inside " "

However you could just use:

my $db = $IN->param('db');
-e "/path/to/$db.db" and require "/path/to/$db.db";

Last edited by:

PaulWilson: Sep 10, 2001, 4:04 AM

Edit Log: