codeigniter affected_rows code example Example: codeigniter check affected rows return $this->db->affected_rows() > 0;