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
Basically, it would be a matter of adding conditional statements in the one html.pl file, like the following:

Code:

if ($IN->('db') eq "somedatabase") {
DO SOMETHING
}
elsif ($IN->('db') eq "somethelse") {
DO SOMETHING ELSE
}
else {
DO DEFAULT
}


These codes could be applied in each subroutine in the html.pl.

OR You could use mulitple html.pl by adding the following codes in the default.cfg file:

Code:

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


BTW: This project would be more easily managed with LINKS SQL.


========================================
Buh Bye!

Cheers,
Me

Last edited by:

AnthroRules: Sep 9, 2001, 9:23 AM

Edit Log: