Jump to content

Cannot Create Multiple connection to server


mat_seth

Recommended Posts

Hello

 

I have a problem that i cannot create connection to multiple database server. All this database server is in the lan. I using php and database is mysql. Example like i have 4 database server with 4 different ip address and then try to connect to this 4 server at the same time. Then i want to retrieve all the data from the 4 server at the same time means that if i want to search data like student name it will find the name at the four server simultaneously.

 

If someone know how to counter this problem it really help

 

tQ...

Sori i can connect using dreaweaver but my bos said he do not want the it because in dreaweaver it will execute it one line by one so it do not meet his spect.

 

But can we do function on the connection part because i do not really kwon how to do function. for example

 

function config() {

$dbConf = new object;

$dbConf->dbUser = "root";

$dbConf->dbPwd = "vertrigo";

$dbConf->dbName = "rental";

$dbConf->dbHost = "dbHost";

 

dbHost=192.168.1.2;

dbHost=192.168.1.3;

dbHost=192.168.1.4;

$this->c_db($dbConf->dbUser, $dbConf->dbPwd , $dbConf->dbName, $dbConf->dbHost);

 

I stuck at this function can someone help me.

Because if i doing this function it will execute to all the server simultaneously.

 

someone help me plzzz.. :'(

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.