![]() |
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 =) |
I think the database connection can only deal with one database, although it looks like you know just as much about MySQL as me.
|
You could create a second database object for your other database.
|
Quote:
|
Whilst you could create a second object, you were correct the first time.
Quote:
will work. You can also join across databases. |
All times are GMT. The time now is 05:43 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|