Welcome Guest, Not a member yet? Register   Sign In
How to catch database operation errors
#9

I extended the model as followed for testing purpose:
PHP Code:
        $this->db->where('id'$userID);
        
$error $this->db->error();
        echo 
json_encode($error); die;

        
$this->db->delete('users'); 


But it always returns no error. Even if I put error() after db-delete.
The response in Developer Tools is:
Code:
{"code":0,"message":""}
Reply


Messages In This Thread
RE: How to catch database operation errors - by _Alain_ - 11-20-2019, 07:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB