Welcome Guest, Not a member yet? Register   Sign In
Call to a member function real_escape_string() on a non-object
#1

When I use the load->database with the seccond param TRUE, I get the error
Code:
Severity: Error

Message: Call to a member function real_escape_string() on a non-object

Filename: mysqli/mysqli_driver.php

Line Number: 321

This happened after upgrade from codeigniter 2 to 3. I cannot find the problem in the upgrading guide.

The code I use is:
PHP Code:
$ci =& get_instance();
$this->userdb $ci->load->database('default'TRUE);

$qres $this->userdb->get($this->table_name); 
Reply


Messages In This Thread
Call to a member function real_escape_string() on a non-object - by bboom - 12-10-2014, 03:01 PM



Theme © iAndrew 2016 - Forum software by © MyBB