// 删除会议记录 session_start(); require_once '../config.php'; // 检查管理员是否登录 if (!isset($_SESSION['admin_id'])) { header("Location: admin_login.php"); exit; } // 验证ID参数 $meeting_id = isset($_GET['id']) ? intval($_GET['id']) : 0; if ($meeting_id <= 0) { header("Location: meeting_list.php"); exit; } // 执行删除操作 - 修复表名错误:将meetings改为meeting_deployments $stmt = $conn->prepare("DELETE FROM meeting_deployments WHERE id = ?"); $stmt->bind_param("i", $meeting_id); if ($stmt->execute()) { // 删除成功,重定向回列表页并显示成功消息 $_SESSION['success_message'] = '会议记录已成功删除'; } else { // 删除失败,重定向回列表页并显示错误消息 $_SESSION['error_message'] = '删除失败,请重试'; } $stmt->close(); $conn->close(); // 重定向回会议列表页 header("Location: meeting_list.php"); exit;