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) ?> - 宏观研究
= htmlspecialchars($subject_type) ?>
生成时间:= $created_at ?>
= htmlspecialchars($title) ?>
= htmlspecialchars($subject_code) ?>