Initial commit: 교육 프로젝트 배포

This commit is contained in:
송대일 committed 2026-07-01 18:32:42 +09:00
commit be6dccd120
1483 files changed
+5082202

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
<?php
try {
$pdo = new PDO('mysql:host=baroncs.co.kr;port=3306;dbname=baronhomep;charset=utf8mb4', 'baronhomep', 'baron3840!!', [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]);
$rows = $pdo->query('SELECT group_code, code, code_name, is_active FROM edu_codes ORDER BY group_code, code')->fetchAll(PDO::FETCH_ASSOC);
echo count($rows) . ' rows' . PHP_EOL;
foreach ($rows as $r) {
echo implode(' | ', $r) . PHP_EOL;
}
echo PHP_EOL . '--- SHOW TABLES ---' . PHP_EOL;
$tables = $pdo->query('SHOW TABLES LIKE "edu_%"')->fetchAll(PDO::FETCH_COLUMN);
foreach ($tables as $t) echo $t . PHP_EOL;
} catch (Exception $e) {
echo 'ERROR: ' . $e->getMessage() . PHP_EOL;
}