Multiple connections in SQL Server
| From: | GONCALVES Vania Guiomar | Date: | Thu, 16 May 2002 16:39:03 +0000 |
| Subject: | Multiple connections in SQL Server | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-6157@lists.php.net to get a copy of this message | ||
It seems that DB.php cannot handle different connections for SQL Server. I
noticed that you fixed this for MySQL.
In mysql.php you have this:
if ($dsninfo['database']) {
// fix to allow calls to different databases in the same script
if (empty($GLOBALS['_DB_mysql_changed_database'])) {
$this->_changed_db = false;
if (!@mysql_select_db($dsninfo['database'], $conn)) {
return $this->raiseError(DB_ERROR_NODBSELECTED, null,
null,
null, mysql_error($conn));
}
} else {
$GLOBALS['_DB_mysql_changed_database'] = true;
$this->_changed_db = $dsninfo['database'];
}
}
And in mssql.php it's only this:
if ($dsninfo['database']) {
if (!@mssql_select_db($dsninfo['database'], $conn)) {
return $this->raiseError(DB_ERROR_NODBSELECTED, null, null,
null, mssql_get_last_message());
}
}
Are you going to fix this or it's not possible?
Thanks