<?xml version="1.0" encoding="utf-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Sortable (Drag &amp; Drop) Table Rows</title>
	<atom:link href="http://www.nerdydork.com/sortable-drag-drop-table-rows.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.nerdydork.com/sortable-drag-drop-table-rows.html</link>
	<description>Dustin Davis reviews... the internet.</description>
	<lastBuildDate>Mon, 06 Feb 2012 13:23:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: harish</title>
		<link>http://www.nerdydork.com/sortable-drag-drop-table-rows.html/comment-page-1#comment-7888</link>
		<dc:creator>harish</dc:creator>
		<pubDate>Thu, 17 Nov 2011 04:27:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/sortable-drag-drop-table-rows.html#comment-7888</guid>
		<description>i didnt find any stopDrop() function in the html file and js file</description>
		<content:encoded><![CDATA[<p>i didnt find any stopDrop() function in the html file and js file</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Harish</title>
		<link>http://www.nerdydork.com/sortable-drag-drop-table-rows.html/comment-page-1#comment-7887</link>
		<dc:creator>Harish</dc:creator>
		<pubDate>Thu, 17 Nov 2011 04:26:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/sortable-drag-drop-table-rows.html#comment-7887</guid>
		<description>Added a kludgey hack at the end of the stopDrop() function to post the new order to a php script, this part i dont understand, could you pls help me with a sample code</description>
		<content:encoded><![CDATA[<p>Added a kludgey hack at the end of the stopDrop() function to post the new order to a php script, this part i dont understand, could you pls help me with a sample code</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: girlscoutheroin</title>
		<link>http://www.nerdydork.com/sortable-drag-drop-table-rows.html/comment-page-1#comment-5010</link>
		<dc:creator>girlscoutheroin</dc:creator>
		<pubDate>Fri, 22 May 2009 01:55:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/sortable-drag-drop-table-rows.html#comment-5010</guid>
		<description>mad props to you brother.

the scriptaculous implementation of this behaviour for tables is buggy at best, and doesnt work worth a damn in internet exploder.

your code works like a champ.

many many thanks to you and Mark Wilton-Jones, job very well done.</description>
		<content:encoded><![CDATA[<p>mad props to you brother.</p>
<p>the scriptaculous implementation of this behaviour for tables is buggy at best, and doesnt work worth a damn in internet exploder.</p>
<p>your code works like a champ.</p>
<p>many many thanks to you and Mark Wilton-Jones, job very well done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yogesh</title>
		<link>http://www.nerdydork.com/sortable-drag-drop-table-rows.html/comment-page-1#comment-4290</link>
		<dc:creator>Yogesh</dc:creator>
		<pubDate>Thu, 05 Jun 2008 06:20:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/sortable-drag-drop-table-rows.html#comment-4290</guid>
		<description>Hello Dustin,
Thanks for your reply n code.
I got it working... :)</description>
		<content:encoded><![CDATA[<p>Hello Dustin,<br />
Thanks for your reply n code.<br />
I got it working&#8230; <img src='http://www.nerdydork.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dustin</title>
		<link>http://www.nerdydork.com/sortable-drag-drop-table-rows.html/comment-page-1#comment-4288</link>
		<dc:creator>Dustin</dc:creator>
		<pubDate>Tue, 03 Jun 2008 12:37:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/sortable-drag-drop-table-rows.html#comment-4288</guid>
		<description>The PHP Snippet in this post is all the code I&#039;m using to update the database.

Here it is with comments...

&lt;strong&gt;// create an array containing the new order passed in&lt;/strong&gt;
$order = split(&#039;id&#039;, $_GET[&#039;order&#039;]);
&lt;strong&gt;// drop the first item in the array since it is garbage&lt;/strong&gt;
array_shift($order);

&lt;strong&gt;// loop through each item in the order array&lt;/strong&gt;
foreach ($order as $val) {
 &#160; &#160; &lt;strong&gt;// create and execute query to update the &quot;rank&quot; or order of the host&lt;/strong&gt;
 &#160; &#160; $sql = “UPDATE hosts SET rank=”.++$rank.” WHERE id=$val;”;
 &#160; &#160; mysql_query($sql);
}</description>
		<content:encoded><![CDATA[<p>The PHP Snippet in this post is all the code I&#8217;m using to update the database.</p>
<p>Here it is with comments&#8230;</p>
<p><strong>// create an array containing the new order passed in</strong><br />
$order = split(&#8216;id&#8217;, $_GET['order']);<br />
<strong>// drop the first item in the array since it is garbage</strong><br />
array_shift($order);</p>
<p><strong>// loop through each item in the order array</strong><br />
foreach ($order as $val) {<br />
 &nbsp; &nbsp; <strong>// create and execute query to update the &#8220;rank&#8221; or order of the host</strong><br />
 &nbsp; &nbsp; $sql = “UPDATE hosts SET rank=”.++$rank.” WHERE id=$val;”;<br />
 &nbsp; &nbsp; mysql_query($sql);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: yogesh</title>
		<link>http://www.nerdydork.com/sortable-drag-drop-table-rows.html/comment-page-1#comment-4287</link>
		<dc:creator>yogesh</dc:creator>
		<pubDate>Tue, 03 Jun 2008 10:14:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/sortable-drag-drop-table-rows.html#comment-4287</guid>
		<description>hello,
Its really great script to work on.
I m trying to include this into my project but i m not getting how to store sort order in database.
I m using this in cakephp.
Can you please explain with code?</description>
		<content:encoded><![CDATA[<p>hello,<br />
Its really great script to work on.<br />
I m trying to include this into my project but i m not getting how to store sort order in database.<br />
I m using this in cakephp.<br />
Can you please explain with code?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brian</title>
		<link>http://www.nerdydork.com/sortable-drag-drop-table-rows.html/comment-page-1#comment-3890</link>
		<dc:creator>Brian</dc:creator>
		<pubDate>Thu, 09 Aug 2007 19:05:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/sortable-drag-drop-table-rows.html#comment-3890</guid>
		<description>Thanks for this, it was very helpful. I wish scriptaculous would release a better version that dealt with sorting tables...</description>
		<content:encoded><![CDATA[<p>Thanks for this, it was very helpful. I wish scriptaculous would release a better version that dealt with sorting tables&#8230;</p>
]]></content:encoded>
	</item>
</channel>
</rss>
<!-- This Quick Cache file was built for (  www.nerdydork.com/sortable-drag-drop-table-rows.html/feed ) in 0.18532 seconds, on Feb 9th, 2012 at 2:32 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on Feb 9th, 2012 at 3:32 am UTC -->
