You can do this very easily with jQuery.
When you click tick, an AJAX request is sent, then a new row is added to the table.
If you already have PHP code to add an entry to your mySQL database, it is just a matter of learning some jQuery.
jQuery . - AJAX.