Welcome Guest, Not a member yet? Register   Sign In
Calling $this->load->database() multiple times
#8

[eluser]nil_php[/eluser]
The solution is-

There is need to write $this->load->database('default', TRUE); sentence in every function you have to just write it in constructor.

Make sure to set your db pconnect to FALSE if you are going to connect to multiple databases.

$db[‘master’][‘pconnect’] = FALSE;

$db[‘slave’][‘pconnect’] = FALSE;


Please check the link
http://www.adroitcoders.com/blog/2010/06...ing-mysql/


Messages In This Thread
Calling $this->load->database() multiple times - by El Forum - 06-07-2010, 12:56 PM
Calling $this->load->database() multiple times - by El Forum - 06-07-2010, 01:30 PM
Calling $this->load->database() multiple times - by El Forum - 06-07-2010, 01:33 PM
Calling $this->load->database() multiple times - by El Forum - 06-07-2010, 03:08 PM
Calling $this->load->database() multiple times - by El Forum - 06-08-2010, 01:08 AM
Calling $this->load->database() multiple times - by El Forum - 06-08-2010, 01:24 AM
Calling $this->load->database() multiple times - by El Forum - 06-08-2010, 06:45 AM
Calling $this->load->database() multiple times - by El Forum - 06-23-2010, 03:04 AM
Calling $this->load->database() multiple times - by El Forum - 06-23-2010, 03:35 AM
Calling $this->load->database() multiple times - by El Forum - 06-23-2010, 03:59 AM
Calling $this->load->database() multiple times - by El Forum - 01-12-2011, 04:13 PM
Calling $this->load->database() multiple times - by El Forum - 01-12-2011, 04:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB