alert('操作成功');window.location.href='../Goods.php';";
} else {
echo "";
}
} else {
// 如果存在则更新记录
$sql = "UPDATE goodsta SET status=$status WHERE spid=$spid AND puid=$puid";
if (mysqli_query($con, $sql)) {
echo "";
} else {
echo "";
}
}
mysqli_close($con);
?>