[eluser]souri84[/eluser]
hi everybody,
I'm using CI with Oracle and I had to change the file system/database/drives/odbc/odbc_result.php at line 68.
In fact, I had an error :
Code:
odbc_field_name() [function.odbc-field-name]: Field numbering starts at 1
So, I change this one :
Code:
function list_fields()
{
$field_names = array();
for ($i = 0; $i < $this->num_fields(); $i++)
{
$field_names[] = odbc_field_name($this->result_id, $i);
}
return $field_names;
}
by this one :
Code:
function list_fields()
{
$field_names = array();
for ($i = 1; $i <= $this->num_fields(); $i++)
{
$field_names[] = odbc_field_name($this->result_id, $i);
}
return $field_names;
}
and now, it's ok...
Have a good day !
Thibaut