使用ADODB連接同一台server上的不同資料庫
文章發佈於 : 2004-09-16 01:11:39 | 文章分類 : 程式相關
標籤 :
程式相關
這個問題之前我同事有問過我,今天又有一個網友問我.
所以我就把這個修改方法貼上來,讓有需要的人都可以參考.
1. 修改 $adodb_path/drivers/adodb-mysql.inc.php
將 var $forceNewConnect = false; 改成 var $forceNewConnect = true;
2. 使用不同的連結方法
原本我們所使用的方法是 $db1->Connect("$mysql_host","$mysql_user","$mysql_pass","mysql");
將連結的方法改成 $db1->NConnect("$mysql_host","$mysql_user","$mysql_pass","mysql");
Love is waiting so you don't have to. Join Date.com for free!
Join Asia FriendFinder the Largest Asian Dating Site on the Web for FREE!
Kaspersky Security for Internet Gateway 7.0
Know when to sell on eBay using research
