$someObject = new aModel($this->input->post('user_id'); if ( $someObject->exists() ) { $someObject->last_name = NULL; $someObject->save(); . . // log/notify results of save routine . } else { . . . // log/notify bad user id }