[eluser]ubl_coder[/eluser]
i use CI 1.7.1 and ODBC database driver, this is my database config:
Code:
$db['default']['hostname'] = "sipdb";
$db['default']['username'] = "";
$db['default']['password'] = "";
$db['default']['database'] = "sipdb";
$db['default']['dbdriver'] = "odbc";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";
sipdb is ODBC DSN name.
This is a function in my model to insert data from input form :
Code:
function simpan() {
$data = array(
'kode_barang'=>$this->input->post('kd_brg'),
'nama'=>$this->input->post('nm_brg'),
'satuan'=>$this->input->post('satuan'),
'harga'=>$this->input->post('harga'),
'stok'=>$this->input->post('stok')
);
$this->db->insert('barang', $data);
}
The problem is when I submitted input form then i got an error like this :
<b>Fatal error: </b>Call to undefined method Barang::_remove_invisible_characters() in <<base_path>>\system\database\drivers\odbc\odbc_driver.php on line 248.
"Barang" is the name of my app controller class.
I don't know why and i couldn't find out how to make it worked. Any solutions?