i have a function in which if the data in table is already there then the new record is updated when submit button is clicked,
and if there is no data then the record is inserted when submit button is clicked
when submit button is clicked alert message displays record is successfully inserted
i want to write a count where it will display a message that how many records were updated and how many inserted
for eg if i click submit button it should come like
2 data inserted
5 data updated