CodeIgniter Forums

Full Version: Is it possible: library access to master DB?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

So I have a master site/database that stores my real estate data.

I also have 'sub sites' (brokers) that access that data. They just display it. They have their own domains.

Right now I've been copying CI installs to each new broker that has the username and password to the master database (sometimes another database is involved...a local if you will). This makes a lot of duplicated code. I'd like to see if I could 'lessen' that code and make things a bit easier to maintain by creating a library. I know the library would help with the extra code, but my question is on the database end of things. How would I go about doing the database so that the library connects to my 'master database'.

Is it possible and how would I go about doing it?