The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
![]()
I'm writing a plugin that will access both the vBulletin db and a different database on the same server. I've gotten it working with the second db by using the standard mysql functions, but I'm trying to clean it up so that it uses only the vBulletin db functions. My question is, can I do this in my plugin to change my selected DB and then change back to the vbulletin db:
Code:
//select the alternate db $this->dbobject->select_db($wp_db_name); //create the table if necessarry $query="CREATE TABLE IF NOT EXISTS `".$wp_table_prefix."vbulletin_mappings` (`wp_post_id` INT NOT NULL ,`vb_thread_id` INT NOT NULL) CHARACTER SET = latin1;"; $this->dbobject->query_write($query); //add some stuff to the new table.... //imagine that there's some kind of insert query here //then switch back to the original vb db $this->dbobject->select_db($vb_db_name); //add the rest of my vb sql stuff here Bueller? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|