Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 200003

Re: [PHP3] PHPLIB and 2 databases From: Gary Bickford (garyb <email protected>)
Date: 03/29/00

I'm using multiple mysql databases. There is a patch to phplib that helps with
this - check the phplib mail list archives. Also, use different usernames and
passwords and for good measure, always specify the database as well as the
table:
    select * from database.table where foo='bar';

I use more-or-less separate classes for each database, however there has been
some inevitable migration due to a less-than-perfectly clear understanding of
the normalized dataset-to-be. We live and learn.

I don't see any other problems - just set up a different class for each one, and
try to keep all the class references straight! :O)

"kesl (my mailing lists)" wrote:

> Hello,
>
> have anyone used PHPLIB with more than 1 database at the same time?
> How is it possible to access 2 different databases (mysql, oracle)
> from the same php3 script?
>
> Matjaz
>
> --
> PHP 3 Mailing List <http://www.php.net/>
> To unsubscribe, send an empty message to php3-unsubscribe <email protected>
> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected>
> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3
> To contact the list administrators, e-mail: php-list-admin <email protected>

--
                "Cyber is cyber, life is life."
Gary E Bickford         mailto:garyb <email protected>
FXT Corporation         http://www.fxt.com/     tel:541-383-2749
mail:PO BOX 1808, SISTERS OR 97759      ship:66265 JERICHO ROAD, BEND OR 97701

-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>