RE: [PHP] 2 x DB connections at once

2004-01-22 Thread Donald Tyler
OK, now I have done some work and it gets even stranger. Two Objects Validator Importer Both objects have private variables called $this-Connection However, when I change the DB for one objects connection pointer, the other objects connection pointer ALSO changes DB. Is it not possible to

Re: [PHP] 2 x DB connections at once

2004-01-22 Thread Luke
It depends, how are you creating the connections, and where are you keeping the connection ID and when you query, or select database, or anything to do with the databases, do you make sure you specify that connection id? //Notice the TRUE, that creates a new conenction, and doesnt use the

Re: [PHP] 2 x DB connections at once

2004-01-22 Thread Justin Patrin
You're running into an old error. I believe that this was a problem with previous versions of PHP, are you using the newest version? Barring that, if you add true to the end of the mysql_connect call to make it a different connection, that should also fix things. Or you could try using