How To Add Multiple Records Into The Same Table At A Time

Here i am trying to add multiple records into the same table at a time when the button is pressed example are when we are adding the work experience module or education details etc


Check this link - . There is answer to your question in case of using query builder.

actually how to get the count for the variable in foreach loop suppose if i am using $this->getItemsToUpdate in controller it is getting error. please tell me how to get the count varible