[SOLVED] Read and Write Database Connection

#9
[eluser]Maglok[/eluser]
As a little sidenote: Profiler has issues with displaying the queries if it is run on PHP4.

As for 2 databases: There is a semi trick. Lets say you have two databases and one is used a lot more then the other, then define that one LAST in the database.php. If you then reference $this->db it will use that database. You would have to load the other database with something like: $this->db2 = $this->load('db2', TRUE); and reference it using $this->db2->something.

I found that I only had to change bits of code where I wanted to approach the 2nd database.


Messages In This Thread
[SOLVED] Read and Write Database Connection - by El Forum - 11-13-2009, 06:22 AM
[SOLVED] Read and Write Database Connection - by El Forum - 11-16-2009, 01:06 PM
[SOLVED] Read and Write Database Connection - by El Forum - 12-21-2009, 01:53 AM
[SOLVED] Read and Write Database Connection - by El Forum - 12-21-2009, 02:06 AM
[SOLVED] Read and Write Database Connection - by El Forum - 01-13-2010, 12:29 AM
[SOLVED] Read and Write Database Connection - by El Forum - 01-13-2010, 12:20 PM
[SOLVED] Read and Write Database Connection - by El Forum - 01-14-2010, 10:28 PM
[SOLVED] Read and Write Database Connection - by El Forum - 01-15-2010, 01:49 AM
[SOLVED] Read and Write Database Connection - by El Forum - 01-15-2010, 02:23 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.