prepare("SELECT * FROM mac_report WHERE id = ? AND is_active = 1"); $stmt->bind_param('i', $id); $stmt->execute(); $result = $stmt->get_result(); $report = $result->fetch_assoc(); $stmt->close(); $mysqli->close(); if (!$report) { header("Location: index.php"); exit(); } $date = $report['report_date']; $title = $report['title']; $content = $report['content']; $subject_type = $report['subject_type']; $subject_code = $report['subject_code']; $created_at = $report['created_at'] ? date('Y-m-d H:i', strtotime($report['created_at'])) : ''; ?> <?= htmlspecialchars($title) ?> - 宏观研究
生成时间:

返回列表