[eluser]yoda.pt[/eluser]
Hi,
Can someone give me a light about this?
I'm trying to use DSN to connect to another database, and I'm not sure about what does $this->load->database funcion returns.
My code:
Code:
$remote = $row['driver'].'://'.$row['username'].':'.$row['password'].'@'.$row['hostname'].'/'.$row['database'].'?char_set=utf8&dbcollat=utf8_general_ci&cache_on=false&cachedir=';
$this->_edb = $this->load->database($remote);
This code is placed inside a model. Everything should work fine, but I can't get the variable refeering the new database pointer. Tried assigning a variavle, using his name, and nothing worked so far.
Can anyone explain what should I receive when calling $this->load->database?
Thank you for your support in advance