How can I check if a query went wrong instead of showing errors to users (containing database info which is unsafe).
Let\'s say I have such situation where my paging
You can try this $this->db->error(); , this will get you the ErrorCode & Errormessage in array format.
$this->db->error();