Troubleshooting: Extending the jQuery Sortable With Ajax & MYSQL <p>I'm trying to implement an ajax tutorial I found at <a href="http://linssen.me/entry/extending-the-jquery-sortable-with-ajax-mysql/" rel="nofollow">http://linssen.me/entry/extending-the-jquery-sortable-with-ajax-mysql/</a></p> <p>The tutorial allows for click-and-drag sortable bullet lists...where each item's position is updated in the database. </p> <p>There's an info box that shows what changes have supposedly been made, but there are no changes made to the database. </p> <p>I've gone over the tutorial a hundred times and I have no idea what could be the problem.</p> <p>I could use a second pair of eyes.</p> <p>process-sortable.php</p> <pre><code>&lt;?php foreach ($_GET['listItem'] as $position =&gt; $item) : $sql[] = "UPDATE `user_feeds` SET `feed_order` = $position WHERE `feed_id` = $item"; endforeach; print_r ($sql); ?&gt; </code></pre> <p>index.php</p> <pre><code>&lt;?php require_once('../php/includes/simplepie.inc'); require_once('../php/includes/newsblocks.inc'); include "../base.php"; $userid = $_SESSION['UserID']; ?&gt; &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /&gt; &lt;title&gt;jQuery Sortable With AJAX &amp;amp; MYSQL&lt;/title&gt; &lt;script type="text/javascript" src="jquery-1.3.2.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="jquery-ui-1.7.1.custom.min.js"&gt;&lt;/script&gt; &lt;link rel='stylesheet' href='styles.css' type='text/css' media='all' /&gt; &lt;script type="text/javascript"&gt; // When the document is ready set up our sortable with it's inherant function(s) $(document).ready(function() { $("#test-list").sortable({ handle : '.handle', update : function () { var order = $('#test-list').sortable('serialize'); $("#info").load("process-sortable.php?"+order); } }); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;pre&gt; &lt;div id="info"&gt;Waiting for update&lt;/div&gt; &lt;/pre&gt; &lt;ul class="tabs userfeeds" id="test-list"&gt; &lt;?php $feed_results = mysql_query("SELECT feed_id, feed_title, feed_order, feed_page_id FROM user_feeds WHERE ((feed_owner = '" . $_SESSION['UserId'] . "') AND (feed_page_id = '" . $pageid . "')) ORDER BY feed_order ASC;"); $tabcounter = 1; while($row = mysql_fetch_array($feed_results)) { echo "&lt;li id='listItem_"; echo $row[feed_id]; echo "' &gt;"; echo $row[feed_title]; echo "&lt;img src='arrow.png' alt='move' width='16' height='16' class='handle' /&gt;&lt;/li&gt;"; $tabcounter++; } ?&gt; &lt;/ul&gt; &lt;form action="process-sortable.php" method="get" name="sortables"&gt; &lt;input type="hidden" name="test-log" id="test-log" /&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt; </code></pre>