Subin Thomas

Subin Thomas

  • NA
  • 4.9k
  • 127.1k

how to perform count on alert ?

May 15 2019 2:34 AM
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  

Answers (7)