Connected ajax to rapport_home.php update method, now sends data to
rapport_api.php
update() now changes mysql database, rapport_home_print can access it.
Server side now checks if ptracid is a positive integer.