Your browser (Internet Explorer 6) is out of date. It has known security flaws and may not display all features of this and other websites. Learn how to update your browser.
X

Error Oracle Undefined variable: rowcount in oci8_result.php - CodeIgniter

One of the basic problems you run into is "Error Oracle Undefined variable: rowcount in oci8_result.php" when CodeIgniter is trying to get row count while working with Oracle DB. The error coming out as below:


Severity: Notice
Message: Undefined variable: rowcount
Filename: oci8/oci8_result.php
Line Number: XX

Open the file oci8_result.php in (../system/database/drivers/oci8/oci8_result.php) and change 

		return $rowcount;
	

to

		retrun $this->num_rows();
	

 

That solves it.


comments powered by Disqus