Problem using two different database |
Hello, people of the forum.
All right? I'm working with two databases, MySQL as primary and Progress as secondary bank via ODBC ... The following is the code for the connections: database.php PHP Code: $active_group = 'default'; The default database is working normally, but when I try to access the database via ODBC with activerecord the following error: Code: Fatal error: Call to undefined method CI_DB_odbc_driver::get() in C:\xampp\htdocs\novo\application\modules\test\models\Md_test.php on line 15 md_test .php PHP Code: class Md_test extends CI_Model { Can anybody help me?
The query builder cannot be used with the ODBC driver. See https://forum.codeigniter.com/thread-65803.html
I was able to mount a query and return an array, but it does not show me the name of the columns (key)...
PHP Code: $data['test'] = $this->md_test->buscaPedidoAtual($dt); Result: Code: array(49) { |
Welcome Guest, Not a member yet? Register Sign In |