Setting up 2 databases |
Hi there,
I am just trying to setup another database within my project. I have done the following within database.php PHP Code: $active_group = 'default'; I have taken out the details so that its not massive. I have tried to connect to it but it just errors with cannot find $db2 and I am getting no where. Can anyone show me how I can connect to this second database so I can get information from it. Thanks, Doomie
http://codeigniter.com/user_guide/databa...cting.html
Simpler is always better
(03-07-2016, 12:19 PM)Your config: Wrote: Access with: PHP Code: $q1 = $db1->query(...)->... or with other methods |
Welcome Guest, Not a member yet? Register Sign In |