<?php
session_start();
if ($_SESSION['gh']==''){
header('location:login.php');
}
include("config.php");
$sql='delete from geren where gh='.$_SESSION['gh'];
mssql_query($sql);
$gr=str_replace("container","",$_POST['gr']);
//echo $gr;
$array = explode("$", $gr);
for ($i=0;$i<=count($array)-2;$i++){
$add=explode("|",$array[$i]);
$sql='insert into geren (mokuaiid,biaogeid,gh) values ("'.$add[0].'","'.$add
[1].'","'.$_SESSION['gh'].'")';
//echo $sql.'<br>';
mssql_query($sql);
}
header("location:view.php");
?>
dojo 这里下载
您可能感兴趣的文章: