Connecting Multiple Database Codeigniter

Connecting Multiple Database Codeigniter

Connecting Multiple Database Codeigniter.Suppose sometime we are developing a website and we need to connect multiple database in our site. At this situations codeiginiters provides an easy and handy solution to connect multiple database. To make this possible we just need to add some config of databases and load the db instance. We need to set only PCONNECT (persistent connection) to set TRUE/FALSE. Following are some codiginiter config file code in which we are

Connecting Multiple Database Codeigniter.

Database Configuration

Use in controller/model :-

after set configuration we need to only load and use database objects.

Sandeep Kumar

Sandeep kumar is a web developer and a professinal blogger. He works for latest technologies and write articles what he learn. In ICodeHub he share web languages tutorials and other programming tips and tricks. if you need some help or have some suggestion then mail him at sandeep92pal@gmail.com without any hesitation. He believes in learning and sharing.