Update any number of column

This is my function for update. It requires all the parameters for update. However I want update function in such a way that it updates according to the number of parameters passed by the user. …