[ Index ]
 

Code source de eGroupWare 1.2.106-2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/phpgwapi/js/dhtmlxtree/samples/with_db/ -> dropprocessor.php (source)

   1  <?php 
   2      header("Content-type:text/xml");
   3      require_once ('config.php'); 
   4      print("<?xml version=\"1.0\"?>");
   5      $id = $_GET["id"];
   6      $pid = $_GET["parent_id"];
   7  
   8      $link = mysql_pconnect($mysql_host, $mysql_user, $mysql_pasw);
   9      mysql_select_db ($mysql_db);
  10      
  11      saveNewParent($id,$pid);
  12      
  13      mysql_close($link);
  14      
  15      //creates xml show item details
  16  	function saveNewParent($id,$pid){
  17          global $id_out;
  18          $sql = "Update Tree set item_parent_id=$pid where item_id=$id";
  19          $res = mysql_query($sql);
  20          if($res){
  21              $id_out = $id;
  22          }else{
  23              $id_out = "-1";
  24          }
  25      }
  26  ?>
  27  <succeedded id="<?=$id_out?>"/>


Généré le : Sun Feb 25 17:20:01 2007 par Balluche grâce à PHPXref 0.7