Help needed with webhook/php inserting data in MySQL table

I always found the easiest way to find what was happening was to write to a file. similar to debugging using serial, or returning things to the webhook.. my computer crashed last week so i cant share the whole code...
have a look at this thread..