<?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: Sorting items on the fly (AJAX) using jQuery UI Sortable, PHP &amp; MySQL.</title>
	<atom:link href="http://www.hdeya.com/blog/2009/05/sorting-items-on-the-fly-ajax-using-jquery-ui-sortable-php-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.hdeya.com/blog/2009/05/sorting-items-on-the-fly-ajax-using-jquery-ui-sortable-php-mysql/</link>
	<description>We can make IT</description>
	<lastBuildDate>Tue, 20 Apr 2010 17:51:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mahmoud M. Abdel-Fattah</title>
		<link>http://www.hdeya.com/blog/2009/05/sorting-items-on-the-fly-ajax-using-jquery-ui-sortable-php-mysql/comment-page-1/#comment-116</link>
		<dc:creator>Mahmoud M. Abdel-Fattah</dc:creator>
		<pubDate>Tue, 20 Apr 2010 17:51:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.hdeya.com/blog/?p=162#comment-116</guid>
		<description>Before asking for help, you should use real email, and you&#039;re using FAKE ONE, so how can we help you ?!</description>
		<content:encoded><![CDATA[<p>Before asking for help, you should use real email, and you&#8217;re using FAKE ONE, so how can we help you ?!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arne</title>
		<link>http://www.hdeya.com/blog/2009/05/sorting-items-on-the-fly-ajax-using-jquery-ui-sortable-php-mysql/comment-page-1/#comment-115</link>
		<dc:creator>Arne</dc:creator>
		<pubDate>Tue, 20 Apr 2010 17:45:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.hdeya.com/blog/?p=162#comment-115</guid>
		<description>Since you didn&#039;t include your exact versions of compiled jQuery and jQuery UI, the script gives me &quot;there&#039;s an error with AJAX.&quot; I appreciate the tutorial and don&#039;t want to disparage you taking the time to share your work freely with the world, but if you&#039;re going to write a tutorial, put up all the files required, preferably as a downloadable ZIP, and take the time to explain the code.</description>
		<content:encoded><![CDATA[<p>Since you didn&#8217;t include your exact versions of compiled jQuery and jQuery UI, the script gives me &#8220;there&#8217;s an error with AJAX.&#8221; I appreciate the tutorial and don&#8217;t want to disparage you taking the time to share your work freely with the world, but if you&#8217;re going to write a tutorial, put up all the files required, preferably as a downloadable ZIP, and take the time to explain the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: paceto</title>
		<link>http://www.hdeya.com/blog/2009/05/sorting-items-on-the-fly-ajax-using-jquery-ui-sortable-php-mysql/comment-page-1/#comment-106</link>
		<dc:creator>paceto</dc:creator>
		<pubDate>Wed, 10 Mar 2010 14:11:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.hdeya.com/blog/?p=162#comment-106</guid>
		<description>// Great tutorial but ... please fix this SQL INJECTION style mysql_query

!!!!!!!!! SQL INJECTION via $menu[$i] !!!!!!!!!!
mysql_query(&quot;UPDATE `menu` SET `sort`=&quot; . $i . &quot; WHERE `id`=&#039;&quot; . $menu[$i] . &quot;&#039;&quot;) or die(mysql_error());
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

$menu[$i] variable is send by the client so it&#039;s insecure ...
what if I send post ... $menu[$i] = blabla&#039; or 1=1;#   ... this will update all records in this table ...

!!!!!!!! CORRECT !!!!!!!!!!!!!
mysql_query(&quot;UPDATE `menu` SET `sort`=&quot; . mysql_real_escape_string($i) . &quot; WHERE `id`=&#039;&quot; . mysql_real_escape_string($menu[$i]) . &quot;&#039;&quot;) or die(mysql_error());
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Great tutorial 10x again</description>
		<content:encoded><![CDATA[<p>// Great tutorial but &#8230; please fix this SQL INJECTION style mysql_query</p>
<p>!!!!!!!!! SQL INJECTION via $menu[$i] !!!!!!!!!!<br />
mysql_query(&#8220;UPDATE `menu` SET `sort`=&#8221; . $i . &#8221; WHERE `id`=&#8217;&#8221; . $menu[$i] . &#8220;&#8216;&#8221;) or die(mysql_error());<br />
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
<p>$menu[$i] variable is send by the client so it&#8217;s insecure &#8230;<br />
what if I send post &#8230; $menu[$i] = blabla&#8217; or 1=1;#   &#8230; this will update all records in this table &#8230;</p>
<p>!!!!!!!! CORRECT !!!!!!!!!!!!!<br />
mysql_query(&#8220;UPDATE `menu` SET `sort`=&#8221; . mysql_real_escape_string($i) . &#8221; WHERE `id`=&#8217;&#8221; . mysql_real_escape_string($menu[$i]) . &#8220;&#8216;&#8221;) or die(mysql_error());<br />
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!</p>
<p>Great tutorial 10x again</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jorin</title>
		<link>http://www.hdeya.com/blog/2009/05/sorting-items-on-the-fly-ajax-using-jquery-ui-sortable-php-mysql/comment-page-1/#comment-104</link>
		<dc:creator>jorin</dc:creator>
		<pubDate>Sun, 14 Feb 2010 16:50:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.hdeya.com/blog/?p=162#comment-104</guid>
		<description>still doesnt makes sense where the $_POST[&quot;menu&quot;] variable is beeing created..</description>
		<content:encoded><![CDATA[<p>still doesnt makes sense where the $_POST["menu"] variable is beeing created..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lardlad</title>
		<link>http://www.hdeya.com/blog/2009/05/sorting-items-on-the-fly-ajax-using-jquery-ui-sortable-php-mysql/comment-page-1/#comment-103</link>
		<dc:creator>lardlad</dc:creator>
		<pubDate>Fri, 05 Feb 2010 19:47:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.hdeya.com/blog/?p=162#comment-103</guid>
		<description>This got me hung up too. I think this is where &#039;menu&#039; is posted from:
echo &#039;&#039; .

I guess the syntax looks for an id and everything after the &quot;_&quot; is what gets posted.</description>
		<content:encoded><![CDATA[<p>This got me hung up too. I think this is where &#8216;menu&#8217; is posted from:<br />
echo &#8221; .</p>
<p>I guess the syntax looks for an id and everything after the &#8220;_&#8221; is what gets posted.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sholn</title>
		<link>http://www.hdeya.com/blog/2009/05/sorting-items-on-the-fly-ajax-using-jquery-ui-sortable-php-mysql/comment-page-1/#comment-100</link>
		<dc:creator>sholn</dc:creator>
		<pubDate>Fri, 15 Jan 2010 18:08:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.hdeya.com/blog/?p=162#comment-100</guid>
		<description>Hi there!
nice tutorial, I&#039;ve used with Drupal and works really fine thx! 
I own you a beer ;)</description>
		<content:encoded><![CDATA[<p>Hi there!<br />
nice tutorial, I&#8217;ve used with Drupal and works really fine thx!<br />
I own you a beer <img src='http://www.hdeya.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Colin O. Below</title>
		<link>http://www.hdeya.com/blog/2009/05/sorting-items-on-the-fly-ajax-using-jquery-ui-sortable-php-mysql/comment-page-1/#comment-97</link>
		<dc:creator>Colin O. Below</dc:creator>
		<pubDate>Mon, 23 Nov 2009 02:52:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.hdeya.com/blog/?p=162#comment-97</guid>
		<description>Hi,

is it possible to post more data than only one array? Or add some data tho this array before post to php? 

I have more than one of these sortable div and i&#039;d like to add the possibility to move elements of one sortable div to another sortable div. 

How would you solve this problem?

Regards
Colin</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>is it possible to post more data than only one array? Or add some data tho this array before post to php? </p>
<p>I have more than one of these sortable div and i&#8217;d like to add the possibility to move elements of one sortable div to another sortable div. </p>
<p>How would you solve this problem?</p>
<p>Regards<br />
Colin</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mahmoud M. Abdel-Fattah</title>
		<link>http://www.hdeya.com/blog/2009/05/sorting-items-on-the-fly-ajax-using-jquery-ui-sortable-php-mysql/comment-page-1/#comment-84</link>
		<dc:creator>Mahmoud M. Abdel-Fattah</dc:creator>
		<pubDate>Wed, 07 Oct 2009 11:11:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.hdeya.com/blog/?p=162#comment-84</guid>
		<description>Dear daj, Sorry but we&#039;re not using ASP.</description>
		<content:encoded><![CDATA[<p>Dear daj, Sorry but we&#8217;re not using ASP.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: daj</title>
		<link>http://www.hdeya.com/blog/2009/05/sorting-items-on-the-fly-ajax-using-jquery-ui-sortable-php-mysql/comment-page-1/#comment-83</link>
		<dc:creator>daj</dc:creator>
		<pubDate>Tue, 29 Sep 2009 17:37:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.hdeya.com/blog/?p=162#comment-83</guid>
		<description>Any chance that you can provide a classic ASP sample of sort_menu.php...?

Converting menu_list.php to an ASP version is not a problem at all, but i really don&#039;t know how to read the array in ASP like you&#039;re doing from line #8 in sort_menu.php.

Thanks in advance</description>
		<content:encoded><![CDATA[<p>Any chance that you can provide a classic ASP sample of sort_menu.php&#8230;?</p>
<p>Converting menu_list.php to an ASP version is not a problem at all, but i really don&#8217;t know how to read the array in ASP like you&#8217;re doing from line #8 in sort_menu.php.</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mahmoud M. Abdel-Fattah</title>
		<link>http://www.hdeya.com/blog/2009/05/sorting-items-on-the-fly-ajax-using-jquery-ui-sortable-php-mysql/comment-page-1/#comment-82</link>
		<dc:creator>Mahmoud M. Abdel-Fattah</dc:creator>
		<pubDate>Thu, 10 Sep 2009 09:47:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.hdeya.com/blog/?p=162#comment-82</guid>
		<description>Can you explain in more details, please ?</description>
		<content:encoded><![CDATA[<p>Can you explain in more details, please ?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
