<?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: Drag and drop reordering of database fields (sortables) with jQuery</title>
	<atom:link href="http://www.wiseguysonly.com/2008/12/07/drag-and-drop-reordering-of-database-fields-sortables-with-jquery/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wiseguysonly.com/2008/12/07/drag-and-drop-reordering-of-database-fields-sortables-with-jquery/</link>
	<description>PHP,MySQL and jQuery Developer</description>
	<lastBuildDate>Tue, 20 Jul 2010 13:13:48 +0200</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: seborgarsen</title>
		<link>http://www.wiseguysonly.com/2008/12/07/drag-and-drop-reordering-of-database-fields-sortables-with-jquery/comment-page-1/#comment-5672</link>
		<dc:creator>seborgarsen</dc:creator>
		<pubDate>Thu, 04 Mar 2010 13:17:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.wiseguysonly.com/?p=143#comment-5672</guid>
		<description>solved it by using &#039;toArray&#039; instead and then 

	$pikand  = ($_GET[&#039;data&#039;]);
	
	$array = explode(&quot;,&quot;, $pikand);

	foreach ($array as $position=&gt;$id</description>
		<content:encoded><![CDATA[<p>solved it by using &#8216;toArray&#8217; instead and then </p>
<p>	$pikand  = ($_GET['data']);</p>
<p>	$array = explode(&#8221;,&#8221;, $pikand);</p>
<p>	foreach ($array as $position=&gt;$id</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seborgarsen</title>
		<link>http://www.wiseguysonly.com/2008/12/07/drag-and-drop-reordering-of-database-fields-sortables-with-jquery/comment-page-1/#comment-5670</link>
		<dc:creator>seborgarsen</dc:creator>
		<pubDate>Wed, 03 Mar 2010 18:13:33 +0000</pubDate>
		<guid isPermaLink="false">http://www.wiseguysonly.com/?p=143#comment-5670</guid>
		<description>oh, this is what&#039;s returned via POST:

	item[]=200&amp;item[]=196&amp;item[]=206&amp;item[]=207</description>
		<content:encoded><![CDATA[<p>oh, this is what&#8217;s returned via POST:</p>
<p>	item[]=200&amp;item[]=196&amp;item[]=206&amp;item[]=207</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: seborgarsen</title>
		<link>http://www.wiseguysonly.com/2008/12/07/drag-and-drop-reordering-of-database-fields-sortables-with-jquery/comment-page-1/#comment-5669</link>
		<dc:creator>seborgarsen</dc:creator>
		<pubDate>Wed, 03 Mar 2010 18:01:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.wiseguysonly.com/?p=143#comment-5669</guid>
		<description>Hi,

First of all thanks for the tutorial.

A little snafu, though. I am getting this response:

&quot;Invalid argument supplied for foreach()&quot;

[php]
foreach($_POST[&#039;array&#039;] as $key=&gt;$value) {
		$wpdb-&gt;query(&quot;UPDATE $playlists SET order =&#039;&quot; . $key . &quot;&#039; WHERE id =&#039;&quot; . $value . &quot;&#039;&quot;);
	}
[/php]

any hints? the foreach looks perfectly alright to me. stumped.</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>First of all thanks for the tutorial.</p>
<p>A little snafu, though. I am getting this response:</p>
<p>&#8220;Invalid argument supplied for foreach()&#8221;</p>
<p>[php]<br />
foreach($_POST['array'] as $key=&gt;$value) {<br />
		$wpdb-&gt;query(&#8221;UPDATE $playlists SET order =&#8217;&#8221; . $key . &#8220;&#8216; WHERE id =&#8217;&#8221; . $value . &#8220;&#8216;&#8221;);<br />
	}<br />
[/php]</p>
<p>any hints? the foreach looks perfectly alright to me. stumped.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Levi</title>
		<link>http://www.wiseguysonly.com/2008/12/07/drag-and-drop-reordering-of-database-fields-sortables-with-jquery/comment-page-1/#comment-690</link>
		<dc:creator>Levi</dc:creator>
		<pubDate>Wed, 21 Jan 2009 17:28:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.wiseguysonly.com/?p=143#comment-690</guid>
		<description>Never mind I figured it out...  It was just a combination of me sending the wrong parameters to the server_items_reorder.php and missing a few brackets and parentheses.</description>
		<content:encoded><![CDATA[<p>Never mind I figured it out&#8230;  It was just a combination of me sending the wrong parameters to the server_items_reorder.php and missing a few brackets and parentheses.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Levi</title>
		<link>http://www.wiseguysonly.com/2008/12/07/drag-and-drop-reordering-of-database-fields-sortables-with-jquery/comment-page-1/#comment-688</link>
		<dc:creator>Levi</dc:creator>
		<pubDate>Wed, 21 Jan 2009 17:12:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.wiseguysonly.com/?p=143#comment-688</guid>
		<description>I have tried all three of these tutorials now in hopes that I might be able to get one of them to work.  

I had problems with Mootools because I could not find the ajax section of javascript from anywhere. (its not on there site any longer)

I had scriptaculous working minus the server side updating and I just tried this one (jQuery) and my Firebug Debugging Console keeps telling me &quot;missing } after property list.&quot;

For the life of me I cannot get this to work.  Any suggestions?  BTW, I am using a local server. Are there any settings relating to Ajax, that I need to change?</description>
		<content:encoded><![CDATA[<p>I have tried all three of these tutorials now in hopes that I might be able to get one of them to work.  </p>
<p>I had problems with Mootools because I could not find the ajax section of javascript from anywhere. (its not on there site any longer)</p>
<p>I had scriptaculous working minus the server side updating and I just tried this one (jQuery) and my Firebug Debugging Console keeps telling me &#8220;missing } after property list.&#8221;</p>
<p>For the life of me I cannot get this to work.  Any suggestions?  BTW, I am using a local server. Are there any settings relating to Ajax, that I need to change?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
