PHP Classes

Question regarding mutiple connection

Recommend this page to a friend!

      Cyber MySQL PDO  >  All threads  >  Question regarding mutiple connection  >  (Un) Subscribe thread alerts  
Subject:Question regarding mutiple connection
Summary:How to achieve multiple connections?
Messages:2
Author:Ricardo Vercesi
Date:2015-12-14 16:37:04
 

  1. Question regarding mutiple connection   Reply   Report abuse  
Picture of Ricardo Vercesi Ricardo Vercesi - 2015-12-14 16:37:04
How can I get parallel multiple connections?
Currently I have to use
$databaseSetup = new cbSQLConnectConfig( cbSQLConnectVar::DB_MYSQL, "localhost","3306","cm_forma","root","root"); // Setup Class
$db = new cbSQLConnect($databaseSetup, cbSQLConnectVar::FETCH_ASSOC);

and after change for another and go back each time I need to query a different DB.

  2. Re: Question regarding mutiple connection   Reply   Report abuse  
Picture of Nicholas Oliveira Nicholas Oliveira - 2016-03-07 15:55:21 - In reply to message 1 from Ricardo Vercesi
you can acheive using

2 cbSQLConnectConfig

with diferrent connections strings