Archive for November, 2013

Connecting to Multiple Databases in CodeIgniter

codeigniter

You can connect to more than one database simultaneously in CodeIgniter. In the database.php (inside application/config folder) file, you will find the following default database connection code. $active_group = ‘default’; $active_record = TRUE; $db['default']['hostname'] = ‘localhost’; $db['default']['username'] = ”; $db['default']['password'] = ”; $db['default']['database'] = ”; $db['default']['dbdriver'] = ‘mysql’; $db['default']['dbprefix'] = ”; $db['default']['pconnect'] = TRUE; $db['default']['db_debug'] […]

Read More →