I've been working towards sending information from my photon into a SQL database, referencing various threads on the forum. I made a webhook, and I have a PHP page which can successfully insert to the database. The problem is that I can't seem to access the information which I am trying to publish.
I want to be able to send multiple pieces of information, but I'm currently just trying to insert the data as a whole. Could someone point out what I could be doing wrong? When the row is added to the database, the value for $data ends up being empty.
$data = $_POST['data'];
$sql = 'INSERT INTO Treatments (A, B, C) VALUES ("' . $data . '", "-", "-")';
I currently have a IFTTT applet that takes the published data and puts it in a google docs spreadsheet, so here's what actually gets published if it is useful information.
I followed this guide https://github.com/rickkas7/particle-webhooks along with many other threads but have not had any success yet.
If anyone has some advice, I would greatly appreciate it.