alert('操作成功'); setTimeout(function(){ window.location.href = '../rename.php'; }, 1000);";
} else {
// 弹窗操作失败
echo "";
}
} else {
// 弹窗操作失败
echo "";
}
} elseif ($status == 2) {
// 只更新 rename_table 表
$sql = "UPDATE rename_table SET status = $status, notes = '$notes', uptime = $uptime WHERE id = $id";
if (mysqli_query($con, $sql)) {
// 弹窗操作成功
echo "";
} else {
// 弹窗操作失败
echo "";
}
} else {
// 弹窗操作失败(未知的 status 值)
echo "";
}
mysqli_close($con);
?>