PDA

View Full Version : adding tables to the vb database


desie310
09-16-2009, 12:13 AM
I'm using vba to add pages which contain mysql queries for a separate database and ... it doesn't work. It seems that vba only wants it's content to access vb's forum database. So would it be possible to add the tables from the other database to the vb forum database?

Lynne
09-16-2009, 03:02 AM
Usually when you install vba, it is to the same database that vbulletin is using. If you didn't do that, you really should be asking for help over at the vba forum.

desie310
09-16-2009, 03:12 AM
I actually just figured out what the problem was. The variable I used that stored the connection parameters of the non-vb database caused the errors. I was using:

$db = new mysqli('w', 'x', 'y', 'z');

and got this error:

Content Encoding Error

The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression.

When I changed $db to any other variable name the error disappeared and everything was fine. It must have been conflicting with a vb or vba global variable or something. I'm not sure.

*edit - actually $db would be an object, not a variable (me = noob). But I still don't know what the issue there was, I still guess the namespace was taken.