title: sending data to my php does not accept $data->name
body: <p>So I have this in php and it keeps giving me an error:</p>
  
  <pre><code>&lt;?php
  
  ini_set('display_errors', 1);
  ini_set('display_startup_errors', 1);
  error_reporting(E_ALL);
  
  include("JSON_Test.php");
  
  // Takes raw data from the request
  $json = file_get_contents('php://input');
  
  // Converts it into a PHP object
  $data = json_decode($json);
  
  $integer = $data-&gt;name;
  
  $query = "INSERT INTO Insect_Score_Board ( name , score) VALUES($integer, $data-&gt;score)";
  
  $conn-&gt;exec($query);
  
  echo $data-&gt;name.", ".$data-&gt;score."mommy";
  
  ?&gt;
  </code></pre>
  
  <p>but if I change </p>
  
  <p>$query = "INSERT INTO Insect_Score_Board ( name , score) VALUES('random ', $data->score)";</p>
  
  <p>only $data->name seems to be giving me the problem </p>