Welcome Guest, Not a member yet? Register   Sign In
DSN issue
#3

[eluser]yoda.pt[/eluser]
Hi,


Thank you CI Mirage. I was already under that when you post it, but it still doesn't work.



I wonder why database function doesn't give out an error when it can't connect to the database. The only thing I get now is an error in my view regarding that function result is in a non-object. So, basically, I'm still with problems connection to the database.


Code:
$remote = $row->driver.'://'.$row->username.':'.$row->password.'@'.$row->hostname.'/'.$row->database.'?char_set=utf8&dbcollat=utf8_general_ci&cache_on=false';
$edb = $this->load->database($remote, true);

$query = $edb->get('metas');        
return $query;



Also, why isn't there a distinction between ip and port?


Thanks Smile


Messages In This Thread
DSN issue - by El Forum - 05-20-2008, 08:06 AM
DSN issue - by El Forum - 05-20-2008, 10:11 AM
DSN issue - by El Forum - 05-20-2008, 10:21 AM
DSN issue - by El Forum - 05-20-2008, 10:36 AM
DSN issue - by El Forum - 05-20-2008, 10:49 AM
DSN issue - by El Forum - 05-20-2008, 12:11 PM
DSN issue - by El Forum - 05-20-2008, 01:42 PM
DSN issue - by El Forum - 05-21-2008, 03:10 AM
DSN issue - by El Forum - 05-21-2008, 08:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB