Retrieving data from an external database

Permalink
So we are building a site that will let clients insert an image or text block, but we need them to be able to pull that image or text from a database on our server. At this point I think we need to build a custom block for this, but before we dive into that is there another way to achieve this functionality?

sambrody24
 
GreyhorseDesign replied on at Permalink Reply
GreyhorseDesign
You can switch on active database throughout a session with a simple command.

Loading another database:
$db = Loader::db( 'newserver', 'newuser', 'newpassword', 'newdatabase', true);