mat_seth Posted February 25, 2007 Share Posted February 25, 2007 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... Link to comment https://forums.phpfreaks.com/topic/40053-cannot-create-multiple-connection-to-server/ Share on other sites More sharing options...
Orio Posted February 25, 2007 Share Posted February 25, 2007 There shouldn't be a problem. Can you show the script and the error you are getting? Orio. Link to comment https://forums.phpfreaks.com/topic/40053-cannot-create-multiple-connection-to-server/#findComment-193729 Share on other sites More sharing options...
mat_seth Posted February 27, 2007 Author Share Posted February 27, 2007 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.. :'( Link to comment https://forums.phpfreaks.com/topic/40053-cannot-create-multiple-connection-to-server/#findComment-195120 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.