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
+23
View File
@@ -0,0 +1,23 @@
<?php
require_once __DIR__ . '/bbs/db_conn.php';
echo "=== edu_contents 컬럼 ===\n";
$rst = db_conn()->query("DESCRIBE edu_contents");
foreach ($rst->fetchAll(PDO::FETCH_ASSOC) as $row) {
echo $row['Field'] . " - " . $row['Type'] . "\n";
}
echo "\n=== edu_contents 샘플 데이터 ===\n";
$rows = db_conn()->query("SELECT * FROM edu_contents LIMIT 1")->fetchAll(PDO::FETCH_ASSOC);
if (count($rows) > 0) {
foreach (array_keys($rows[0]) as $col) {
echo "- " . $col . "\n";
}
}
echo "\n=== edu_learning_goals 컬럼 ===\n";
$rst = db_conn()->query("DESCRIBE edu_learning_goals");
foreach ($rst->fetchAll(PDO::FETCH_ASSOC) as $row) {
echo $row['Field'] . " - " . $row['Type'] . "\n";
}
?>