Edit 25.07.2018: As Pawnesh Kumar said in the answer, this seems to be a browser issue. If I hit the button multiple times in Firefox the below script will only
The fact, that you do not have multiply rows in database doesn't proof that. Maybe column "name" is unique in your table?
sudo cat /var/log/apache2/access.logThere you will find info of how many request you recieved.