1 Star 1 Fork 1

gujiejing / WEBWMS

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
transformf.php 816 Bytes
一键复制 编辑 原始数据 按行查看 历史
wisdom 提交于 2017-11-03 23:31 . upupup new alll
<?php
header('Content-type: text/html; charset=utf-8');
require_once('connDB.php');
if(!isset($_SESSION)){
session_start();
}
//echo $_POST['delid'];
if(isset($_POST['delid'])){
$id=$_POST['delid'];
$sql="SELECT * FROM `transmanaged` WHERE `nid` = $id";
$result=mysql_query($sql,$dbc);
$row_Rec=mysql_fetch_assoc($result);
$SOID=$row_Rec['SOID'];
$sql="UPDATE `webwms`.`soh`
SET `ChePaiHao` = NULL,
`TransportNo` = NULL
WHERE `soh`.`SOID` =$SOID;";
mysql_query($sql,$dbc);
$sql="DELETE FROM `webwms`.`transmanaged` WHERE `transmanaged`.`nid` = $id";
mysql_query($sql,$dbc);
$obj->status=1;
$obj->result=1;
$obj->reason="Transfor detail delete Complete";
//$obj->sql=$sql;
echo json_encode($obj);
return;
}
?>
PHP
1
https://gitee.com/laotou99_admin/WEBWMS.git
git@gitee.com:laotou99_admin/WEBWMS.git
laotou99_admin
WEBWMS
WEBWMS
master

搜索帮助