Welcome Guest, Not a member yet? Register   Sign In
multiple database connections postgresql
#2

[eluser]Frank Wong[/eluser]
I don't see your code that uses your database handle. I suspect that is where your problem is since you are not capturing the handle in a variable after setting the second parameter of load->database to TRUE.

Try doing something like this.
Code:
$my_db = $this->load->database('app1', TRUE);
$query = $my_db->query('my sql statement');


Messages In This Thread
multiple database connections postgresql - by El Forum - 06-14-2011, 01:20 AM
multiple database connections postgresql - by El Forum - 06-14-2011, 03:38 PM
multiple database connections postgresql - by El Forum - 06-14-2011, 05:41 PM
multiple database connections postgresql - by El Forum - 06-14-2011, 06:18 PM
multiple database connections postgresql - by El Forum - 06-14-2011, 06:38 PM
multiple database connections postgresql - by El Forum - 06-14-2011, 07:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB