PHP MYSQL update with hash variables
<p>I need some help understanding the correct way to mix variables with strings like this. I have tried every configuration I can think of and I keep getting an error.</p>

<pre><code>&lt;?php
include('connect.php');
foreach($_GET['item'] as $key=&gt;$value) {
    mysql_query("UPDATE userprojectlist SET category_display_order = '$key' WHERE category_id = '$value' ");
}
?&gt; 


Notice: Undefined index: item in updatedb.php on line 3

Warning: Invalid argument supplied for foreach() in pdatedb.php on line 3
</code></pre>
