123456789101112131415161718 |
- <?php
- $group_id = $_POST["group_id"];
- $group_name = $_POST['group_name'];
- $group_portion = $_POST['group_portion'];
- $group_uptime = $_POST['group_uptime'];
- include_once("../../untils/conn.php");
- if ($con) {
- mysqli_query($con, "set names utf8");
- $data = $con->query("UPDATE proxy_group SET group_name ='" . $group_name . "', group_portion='" . $group_portion . "', group_uptime='" . $group_uptime . "' WHERE group_id=" . $group_id);
- if ($data > 0) {
- echo "<script>alert('修改信息成功');window.location.href='../group.php'</script>";
- } else {
- echo ("<script>alert('修改失败');window.location.replace(document.referrer)</script>");
- // echo "Error updating record: " . $con->error;
- }
- }
- $con->close();
|