CodeIgniter Forums
Connecting to second db issue - 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: Connecting to second db issue (/showthread.php?tid=10804)

Pages: 1 2


Connecting to second db issue - El Forum - 08-13-2008

[eluser]Bramme[/eluser]
nope, what's that?


edit: okay, i feel like a fool :p It works now. Thanks again xwero.

Well actually, it sorta works. I only get one result, and not the tut I want but that's probably just my query.


Connecting to second db issue - El Forum - 08-13-2008

[eluser]Derek Allard[/eluser]
[quote author="Bramme" date="1218635935"]edit: okay, i feel like a fool :p It works now. Thanks again xwero.

Well actually, it sorta works. I only get one result, and not the tut I want but that's probably just my query.[/quote]

Do you want the bug report closed out Bramme?


Connecting to second db issue - El Forum - 08-13-2008

[eluser]Bramme[/eluser]
Nope, most certainly not, because the bug I reported persists. This only works when I connect using a second config group. If I use the DNS method, it fails and $query remains empty.


Connecting to second db issue - El Forum - 08-13-2008

[eluser]Derek Allard[/eluser]
Fair 'nuff... if you want to add any additional information, suggestions for code changes, etc, I'd welcome them here.


Connecting to second db issue - El Forum - 08-13-2008

[eluser]xwero[/eluser]
Bramme use
Code:
$con = $this->load->database($dsn, TRUE, TRUE);
If you want to use AR methods. Just discovered it in the loader library code Smile

So it was a AR problem after all. In the user guide there is no mention of a third parameter of the load->database method. You can change the bug rapport to undocumented parameter.