I need to create a webservice in which I can verify in a Mysql database if a new record is added to a table. This in order to call the webservice in a thread as an android service so that when a new record is added send a notification.
What happens is that I will not be the one to do the insert, it will be a script which will feed a database of another. what occurs to me is to count the rows of the table and store them in android studio can be in the preferences or a variable and when it is greater the new number of rows send notification I do not know how viable this is?
and how could I do to bring the number of rows in PDO?