title: parse_str problems
body: <p>I’m sorting a list and using <a href="https://en.wikipedia.org/wiki/Ajax_%28programming%29" rel="nofollow noreferrer">Ajax</a> to update a database. I need help parsing the string. This is the query string that I need to parse:</p>
  <pre class="lang-none prettyprint-override"><code>images_list[]=32&amp;images_list[]=95&amp;images_list[]=97&amp;images_list[]=96&amp;images_list[]=102&amp;images_list[]=103&amp;images_list[]=99&amp;images_list[]=101&amp;images_list[]=98&amp;john=hi
  </code></pre>
  <p>I have put john=hi to test to see if the string is actually being sent via Ajax to the <em>processor.php</em> file. I am able to get the variable john=hi from the URL, so the query string is being sent perfectly fine. This is my code so far, but I can't seem to access the data I need, it appears as if nothing is there:</p>
  <pre><code>&lt;?php
      // Connect to the database
      require_once('connect.php');
  
      parse_str($_GET['images_list']);
      for ($i = 0; $i &lt; count($images_list); $i++) {
          $id = $images_list[$i];
          mysql_query(&quot;UPDATE images SET ranking = '$i' WHERE id = '$id'&quot;);
          echo $images_list[$i];
      }
  ?&gt;
  </code></pre>