CodeIgniter Forums
oci8_result.php's question - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: oci8_result.php's question (/showthread.php?tid=46842)



oci8_result.php's question - El Forum - 11-17-2011

[eluser]Unknown[/eluser]
A warning occurred when retrieving data from Oracle.

1. In database config
$db['default']['dbdriver'] = 'oci8';

2. In controller
$this->load->database();
$query = $this->db->get( 'TABLE' );

3. Then a PHP error was encountered
Severity: Notice
Message: Undefined variable: rowcount
Filename: oci8/oci8_result.php
Line Number: 56

Variable $rowcount has no value, is this a bug?


oci8_result.php's question - El Forum - 04-07-2012

[eluser]BD-CI-Programmer[/eluser]
I got same problem and i have replace return $this->num_rows;

now its working