Welcome Guest, Not a member yet? Register   Sign In
Multiple DB connection - System get the wrong one
#10

[eluser]cinewbie81[/eluser]
u mean remove one of the active_group in database config file ?
now my database config file will looks like this:
Code:
$active_group = "client";
$db['client1']['hostname'] = "localhost";
$db['client1']['username'] = "root";
$db['client1']['password'] = "password";
$db['client1']['database'] = "client1";
$db['client1']['dbdriver'] = "mysql";
$db['client1']['dbprefix'] = "";
$db['client1']['active_r'] = TRUE;
$db['client1']['pconnect'] = TRUE;
$db['client1']['db_debug'] = TRUE;
$db['client1']['cache_on'] = FALSE;
$db['client1']['cachedir'] = ""

and my code

$dbClient = $this->load->database('client', TRUE);

will works with $dbClient only ..
if i want to save database in my server database then how ?
Do i have to do something like $dbClient->query('use database server'), then only save it to server database ? Means i have to manually call the query 'use which database' then only save it to corresponding db ?>


Messages In This Thread
Multiple DB connection - System get the wrong one - by El Forum - 10-29-2007, 04:01 AM
Multiple DB connection - System get the wrong one - by El Forum - 10-30-2007, 12:44 PM
Multiple DB connection - System get the wrong one - by El Forum - 10-30-2007, 12:52 PM
Multiple DB connection - System get the wrong one - by El Forum - 10-30-2007, 07:12 PM
Multiple DB connection - System get the wrong one - by El Forum - 10-30-2007, 10:45 PM
Multiple DB connection - System get the wrong one - by El Forum - 10-31-2007, 12:51 AM
Multiple DB connection - System get the wrong one - by El Forum - 10-31-2007, 01:10 AM
Multiple DB connection - System get the wrong one - by El Forum - 10-31-2007, 02:08 AM
Multiple DB connection - System get the wrong one - by El Forum - 10-31-2007, 02:12 AM
Multiple DB connection - System get the wrong one - by El Forum - 10-31-2007, 03:27 AM
Multiple DB connection - System get the wrong one - by El Forum - 10-31-2007, 03:39 AM
Multiple DB connection - System get the wrong one - by El Forum - 10-31-2007, 05:55 AM
Multiple DB connection - System get the wrong one - by El Forum - 10-31-2007, 06:14 AM
Multiple DB connection - System get the wrong one - by El Forum - 10-31-2007, 07:19 PM
Multiple DB connection - System get the wrong one - by El Forum - 11-02-2007, 04:16 AM
Multiple DB connection - System get the wrong one - by El Forum - 11-02-2007, 04:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB