title: AJAX and PHP/SQL Uncertainty over the location of a error
body: <p>I am simply trying to update an element in an array, and the information, for whatever reason, doesn't seem to be getting through. Here is the javascript that sends the data:</p>
  
  <pre><code>var xmlhttp = new XMLHttpRequest();
  if (window.XMLHttpRequest) 
  {
      // code for IE7+, Firefox, Chrome, Opera, Safari
      xmlhttp = new XMLHttpRequest();
  } 
  else 
  {
      // code for IE6, IE5
      xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
  }
      xmlhttp.onreadystatechange = function () {
      if (xmlhttp.readyState == 4 &amp;&amp; xmlhttp.status == 200) {
          // Do Nothing
      }
  }
  xmlhttp.open("GET","updateGame.php?q=" + str + "&amp;e=" + recordText,true);
  xmlhttp.send();
  </code></pre>
  
  <p>Where <code>recordText</code> is declared elsewhere.</p>
  
  <p>And this is the PHP that hopefully recieves the <code>q</code> and <code>e</code>:</p>
  
  <pre><code>&lt;?php
  
  $q = intval($_GET['q']);
  $e = strval($_GET['e']);
  
  
  
  $servername = "localhost";
  $username = "*****";
  $password = "*****";
  $dbname = "*****";
  
  // Create connection
  $conn = new mysqli($servername, $username, $password, $dbname);
  // Check connection
  if ($conn-&gt;connect_error) {
      die("Connection failed: " . $conn-&gt;connect_error);
  } 
  
  $sql = "UPDATE Games SET entries=$e WHERE PINs=$q";
  $result = $conn-&gt;query($sql) or die($conn-&gt;error);
  
  $conn-&gt;close();
  ?&gt;
  </code></pre>
  
  <p>I have checked, and no information is being updated.</p>