affected row in codeigniter always returns 1 code example Example: codeigniter check affected rows return $this->db->affected_rows() > 0;