Look at the code:
$update = mysql_query("UPDATE `user_shop_items` SET `quantity` = '$new_quantity' WHERE `owner` = '$logged[username']' AND `name` = '$item[name]';"); //update it ;)
If you really look hard enough:
You have a ' in the username, so I fixed that and the ;, weather it matters or not.