Connect to an external database
Posted: Wed Jun 01, 2016 10:00 am
Hi All,
I'm developing a custom module that has to fetch data from an external mysql database. By external I mean a database that resides on another server that is already used by users connecting to it from all over the world.
I was digging into the core adodb functions to find something that could put me on the right track.
The way I see it now, I would need to recreate (copy) the connect functions and modify them, so they are pointed to the external db.
The problem with this is, that I don't know how deep I will need to dig into the core to copy all those functions and modify them accordingly.
Is there another way to achieve an external connection?
Btw I'am on 2.1.3.
Thanks,
Frank.
I'm developing a custom module that has to fetch data from an external mysql database. By external I mean a database that resides on another server that is already used by users connecting to it from all over the world.
I was digging into the core adodb functions to find something that could put me on the right track.
The way I see it now, I would need to recreate (copy) the connect functions and modify them, so they are pointed to the external db.
The problem with this is, that I don't know how deep I will need to dig into the core to copy all those functions and modify them accordingly.
Is there another way to achieve an external connection?
Btw I'am on 2.1.3.
Thanks,
Frank.