title: Keep getting this error constantly- Incorrect integer value: '' for column 'poi_id' at row 1 )
body: <p>Okay so i keep getting "Incorrect integer value: '' for column 'poi_id' at row 1
  )" and the variables specified are not AUTO_INCREMENT. Here is my code:</p>
  
  <pre><code>             &lt;?php
  
  
     header("Content-type: application/json");
  
  
    $pi= $_POST["poi_ID"];
  $rev= $_POST["review"];
  
  
  
  $conn = new PDO("mysql:host=localhost;dbname=name;", "name","name");
  
  
  
  
  
  $results = $conn-&gt;query("SELECT*FROM pointsofinterest");
  
  
    $results= $conn -&gt; query ("INSERT INTO poi_reviews(poi_id, review) VALUES 
    ('$pi', '$rev')");
  
  
  
    echo json_encode($resultsAsAssocArray) ;
  
   print_r($conn-&gt;errorinfo());                        
    ?&gt;  
  </code></pre>