top.doUpdateItem('$newId','$name');"); } //insert item function saveUpdate($id,$name,$parent_id,$desc,$order){ $sql = "Update tree set item_nm = '".addslashes($name)."',item_parent_id = $parent_id,item_desc = '".addslashes($desc)."',item_order = $order where item_id=$id"; print($sql); $res = mysql_query($sql); print(""); } ?>