Connecting to two databases

Posted by Pankaj Khurana on Stack Overflow See other posts from Stack Overflow or by Pankaj Khurana
Published on 2010-03-22T09:24:42Z Indexed on 2010/03/22 9:31 UTC
Read the original article Hit count: 522

Filed under:

Hi,

I have an application in which i want to authenticate a user from a first database & manage other activities from another database. I have created two classes.An object of the classes is defined in a file

$objdb1=new db1(),$objdb2=new db2();

But when i try to call $objdb1->fn(). It searches from the $objdb2 & is showing table1 doesnot exists?

Can you help me on this?

Regards,

Pankaj

© Stack Overflow or respective owner

Related posts about php