Forums / Setup & design / Interaction with external DB

Interaction with external DB

Author Message

Yves Deschrijvere

Friday 02 July 2004 4:44:50 am

Hi,

Is it possible to interact with external databases and dispay content in Exponential ?

Regards,
Yves

No limits, except those of your mind ...

Björn X

Friday 02 July 2004 5:16:29 am

Yes but you need to write your own module for it.

you can use eZDB::instance() and eZDB::setInstance($db) to switch dbs.

Hardy Pottinger

Monday 19 July 2004 1:53:20 pm

Just curious, I'm about to try this, but my scanning of the code for the db class looks like you can really only have one instance at a time. So, if you change the instance, even if you park this in another variable (something other than $db), you'll end up changing your database, which in most cases would break everything else.

Am I wrong? I suppose I'll find out soon enough, but I thought I'd ask anyway.