我想打开 2 adodb 连接。我写了这段代码,但它不起作用。有什么办法可以解决吗?
$conn1 = ADONewConnection('mysql');
$conn1->PConnect($host, $user, $pass, $dbname1);
$conn2 = ADONewConnection('mysql');
$conn2->PConnect($host, $user, $pass, $dbname2);
当我跑
$sqlreadrecord = "SELECT * FROM `1net`";
$recordSet = $conn1->Execute($sqlreadrecord);
它说errorTable'abcd.1net'不存在它似乎正在从$dbname2 搜索1net 表。