Create Multiple Database Connection in Codeigniter

In this post we have explained about how to create multiple database connection in codeigniter. Please do the following changes in your files.

Config.php:

Change the below following things in your config.php

users_model.php:

Here we give sample example code of model function i hope this way you can optimize your functions.

 

Comments

comments

phpexpertise

I’m Blogger and Programming Blog, Tutorials, PHP, MySQL, jQuery, Laravel, Wordpress and Codeigniter