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