Re: [phplib] Multiple database handling in one app. What if ...? From: INFO jpmnet.de (info <email protected>)
Date: 08/02/00

> > PHP reuses database connections, so it's impossible to handle two or
> > more database connections that use similar connection parameters (as I
> > know) simultaneously - you'll get the same results in all opened
> > "connections". But what if one introduces several classes inherited
> > DB_Sql with different connection parameters, e.g:
>
>
> I believe the consensus on this list has been that this will work as is -
if
> the username and password are different for each extension of DB_Sql.
>
> In those cases where separate sql logins are undesired, I have kludged the
> following. I have added the following function to db_mysql.inc (haven't
> tested with any other databases):

... cut

I'am using 4 different subclasses like
"class DB_anything extends DB_Sql"
in local.inc, without any changes.

Jens Peter Möller

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>