![]() |
Multiple mysql connections doesn't seem to work :S
I got the following class, where i wan't to use multiple database connections, but it is somehow broke. It will only make one connection :/
PHP Code:
Code:
Array |
On line 35 (
return(true);) the method returns the first time that a database is selected which stops further execution of the foreach loop (and any other code in the method). Take that line out, or replace it with (a useless, as the code is at the moment) continue; to continue looping through all of the $names. |
I changed the code to this:
PHP Code:
|
I must be missing something here, but why would you need more than one?
|
I haven't tested this, but maybe you could try it?
PHP Code:
|
I just noticed you removed the switch in your second code block. So I did too, and tidied it up a bit more. *shrug* Probably pointless if my last one didn't work, but I'm listening to CSPAN right now, so I kind of just did it in a daze.
PHP Code:
PHP Code:
|
That worked thanks a lot! ^^
|
| All times are GMT. The time now is 04:52 AM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0