![]() |
Anyone able to shed some light on this?
As most of you know, vb uses an object for the database connection ($DB_site).
I'm trying to create a second such object ($DB_gamesite) so that I can use vb's functions to manipulate another database. In global.php I added Code:
$DB_gamesite=new DB_Sql_vb; |
Because it is incomplete ? The init db is bigger then just this code.
|
No, it is not incomplete. Should've said it's vb2.
In global.php the same lines (minus "game" ofcourse) are used to setup the $DB_site object... |
It's not that easy.
Duplicate the class and rename it :) - miSt |
I forgot to say you need to change a few of the properties as well as they are referring to the database defined in config.php :)
- miSt |
All times are GMT. The time now is 02:42 PM. |
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:
|