Welcome Guest, Not a member yet? Register   Sign In
Call to a member function real_escape_string() on boolean
#6

(This post was last modified: 11-15-2017, 10:44 AM by identity_one.)

try
$where['user_id'] = '1'; //value in single quote

instead of
$where['user_id'] = 1;

OR

Code:
public function get($where = array(), $fields = array(), $groupBy = array(), $offset = 0, $limit = 0)
   {  
       foreach ($where as $key => $value) {
           $this->db_slave->where($key, (string) $value); //edited
       }
Reply


Messages In This Thread
RE: Call to a member function real_escape_string() on boolean - by identity_one - 11-15-2017, 08:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB