Initial commit: 교육 프로젝트 배포

This commit is contained in:
송대일
2026-07-01 18:32:42 +09:00
commit be6dccd120
1483 changed files with 5082202 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
<?php
header('Content-Type: application/json; charset=utf-8');
require_once '../../bbs/db_conn.php';
// PDO 연결 생성
$pdo = db_conn();
try {
$stmt = $pdo->query("SELECT * FROM edu_code_group ORDER BY group_code");
$groups = $stmt->fetchAll(PDO::FETCH_ASSOC);
echo json_encode(['groups' => $groups], JSON_UNESCAPED_UNICODE);
} catch (Exception $e) {
echo json_encode(['error' => $e->getMessage()], JSON_UNESCAPED_UNICODE);
}
?>