Call to a member function real_escape_string() on boolean |
Hello
I recently started using codeigniter 3.1.6 and I am facing a strange error whenever I use where function of query builder. Details : When I hit the query string like below select * from user where user_name = "abc@xyz.com" and user_id = 1; I get the desired result. When I try to use query builder like below Code: public function get($where = array(), $fields = array(), $groupBy = array(), $offset = 0, $limit = 0) Call to a member function real_escape_string() on boolean in mysqli_driver.php line 391 which has the function as protected function _escape_str($str) { return $this->conn_id->real_escape_string($str); } I am not sure what is causing this problem ... I would really appriciate any help on this. BTW, When I use query builder to have only primary id on where clause it works without any problem.. The problem is only when there are some strings involved.... The above function is called like Code: public function check_valid_current_password($current_password) |
Messages In This Thread |
Call to a member function real_escape_string() on boolean - by kaustubh.agrawal2000 - 11-08-2017, 04:56 AM
RE: Call to a member function real_escape_string() on boolean - by Narf - 11-08-2017, 06:20 AM
RE: Call to a member function real_escape_string() on boolean - by kaustubh.agrawal2000 - 11-08-2017, 10:24 PM
RE: Call to a member function real_escape_string() on boolean - by Narf - 11-09-2017, 04:01 AM
RE: Call to a member function real_escape_string() on boolean - by kaustubh.agrawal2000 - 11-15-2017, 08:17 PM
RE: Call to a member function real_escape_string() on boolean - by InsiteFX - 11-09-2017, 03:43 AM
RE: Call to a member function real_escape_string() on boolean - by identity_one - 11-15-2017, 08:10 AM
RE: Call to a member function real_escape_string() on boolean - by Narf - 11-15-2017, 10:02 AM
|