Problem with Multible Databases - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Problem with Multible Databases (/showthread.php?tid=54729) |
Problem with Multible Databases - El Forum - 09-22-2012 [eluser]Arrow768[/eluser] Hi, I am using two different databases: server: Stores Infos about the User that have playes at a Orangebox Server default: Stores the System-Tables I have also enabled the Sessions of CodeIgniter I am trying to access the databases with this code: Code: $DB_Server = $this->load->database('server', TRUE); The Problem is, that codeigniter connects to the database that is loaded last: The ci_donate_autofill table is located in the Server DB Code: A Database Error Occurred If I move the default connect line above the Server connect line, I get the following error: Code: A Database Error Occurred It would be great, if you could help me with my Problem |