WebHook to my database error


#1

So i’m trying to take use a webhook to take 5 pages I have and put thier leads into an sql database I have. So I wrote all the php code and set up my database properly. I’m grabbing the data correctly but every time I try to send it to the sql server my error logs show that the data is coming up null. I think the main problem is with decoding the JSON format. I could really appreciate some help here. I think the error comes from somewhere in line 18-40 in my php code. I don’t know where else to go for help. I attached all my code and error logs.