I'm trying to open multiple connections to a mysql database with PHPlib. I've created 2 classes for this:
class members_db extends DB_Sql {
var $Host = "localhost";
var $Database = "members";
var $User = "*";
var $Password = "****";
}
class content_db extends DB_Sql {
var $Host = "localhost";
var $Database = "doc";
var $User = "****";
var $Password = "*******";
}
All the PHPlib sessions are stored in the members database.
When I open a page:
page_open(array("sess" => "my_session",
"auth" => "my_auth",
"perm"=>"permissions",
"user" => "my_user"));
And create a news object of the second class:
$contentbd = new content_db;
PHPlib tries to save the session variables in the doc(content_db) database.
I've check the link_id of both object, and this always remains 0.
$auth->db->link_id() = 0
$contentdb->link_id() = 0
I am sure I never use mysql functions that are not in the PHPlib objects.
im using:
php version 4.0.1 pl2
mysql 3.22.32
phplib 7.2c
Thanks in advance for any help,
Doc H