The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Using $DB object on other databases than vB?
I'm trying to write my first product in vB and had some problems with the database connectivity.
I have some data on another database that I don't want to insert into the vB database. Shouldn't it be enough to give select access to the other database on the vB user and than do a query like: $somevar = $db->query_first("SELECT blabla FROM unixusername_otherdb.table"); I guess I could install mysql 5 and create a view, but was wondering if there was any other ways. Thanks =) |
#2
|
||||
|
||||
I think the database connection can only deal with one database, although it looks like you know just as much about MySQL as me.
|
#3
|
||||
|
||||
You could create a second database object for your other database.
|
#4
|
||||
|
||||
How would one do that with VB's database class?
|
#5
|
||||
|
||||
Whilst you could create a second object, you were correct the first time.
Quote:
will work. You can also join across databases. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|