Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: How to catch database operation errors
Post: RE: How to catch database operation errors

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'...
7,455 Views
8 Replies
11-20-2019, 07:39 AM
_Alain_
    Thread: How to catch database operation errors
Post: RE: How to catch database operation errors

jreklund Wrote: (11-15-2019, 11:29 AM) -- So what type of things are it failing on? It should only return FALSE if it couldn't delete a existing entry. -- Yes, it should only return FALSE if it cou...
7,455 Views
8 Replies
11-19-2019, 04:42 AM
_Alain_
    Thread: How to catch database operation errors
Post: RE: How to catch database operation errors

Ok I did now this: PHP Code: -- $result = $this->db->where('id', $userID); -- Instead of this: PHP Code: -- $result = $this->db->delete('users'); -- The first one returns the following. But I...
7,455 Views
8 Replies
11-15-2019, 05:01 AM
_Alain_
    Thread: How to catch database operation errors
Post: RE: How to catch database operation errors

I think I'm strugling over some basic missunderstanding. The following, in my case, always returns true. Even it was not able to delete it. But why? From my point of view it should only return true ...
7,455 Views
8 Replies
11-15-2019, 04:47 AM
_Alain_
    Thread: How to catch database operation errors
Post: How to catch database operation errors

Hi I try to catch an error if something with the database operations goes wrong. I tried many variants of the following code but $data always returns true (it doesn't matter if the database operat...
7,455 Views
8 Replies
11-13-2019, 01:39 PM
_Alain_

Theme © iAndrew 2016 - Forum software by © MyBB