Está errado porque a referência a uma segunda conexão com o banco de dados
se dá de uma forma diferente.
O correto seria assim
Connecting to Multiple Databases
If you need to connect to more than one database simultaneously you can do
so as follows:
$DB1 = $this->load->database('group_one', TRUE);
$DB2 = $this->load->database('group_two', TRUE);
Note: Change the words "group_one" and "group_two" to the specific group
names you are connecting to (or you can pass the connection values as
indicated above).
By setting the second parameter to TRUE (boolean) the function will return
the database object.
When you connect this way, you will use your object name to issue commands
rather than the syntax used throughout this guide. In other words, rather
than issuing commands with:
$this->db->query();
$this->db->result();
etc...
You will instead use:
$DB1->query();
$DB1->result();
etc...
http://codeigniter.com/user_guide/database/connecting.html
--
Abraços......
Marcel Araujo
System Analyst
Manager at CodeIgniterBR
Developer jQuery/ExtJS/PHP/CodeIgniter/Zend
Linux User #490101
http://br.linkedin.com/in/marcelaraujo
http://www.twitter.com/marcelaraujo
http://www.marcelaraujo.com.br <http://www.marcelaraujo.com.br>
_______________________________________________
[email protected]
http://www.codeigniter.com.br
http://codeigniter.com.br/mailman/listinfo/lista_codeigniter.com.br
---------------------------
Oportunidade de negócio
http://www.franquiasargohost.net
---------------------------