hi all,
I built two mediawiki(wiki1,wiki2),and each of them has a
database(wikidb1,wikidb2).I want to use both of the database in wiki1.That's
mean I can query the data which belong to wikidb2 in wiki1.
I have already use the following code in wiki1.
$dbName = "wikidb2";
$dbw = wfGetDB( DB_MASTER );
$dbw->selectDB( $dbName );
$pageId = $dbw->selectField(
'page','page_id',
array( 'page_title' => $title,
'page_namespace' => 0 ),
__METHOD__);
But it didn't work.
Is there any way or any function to solve this problem?
Thanks a lot
vanessa lee