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
+14
View File
@@ -0,0 +1,14 @@
<?php
require_once __DIR__ . '/db_conn.php';
$pdo = db_conn();
$cols = $pdo->query("SHOW COLUMNS FROM edu_users")->fetchAll(PDO::FETCH_ASSOC);
foreach ($cols as $c) {
echo $c['Field'] . '|' . $c['Type'] . '|' . $c['Null'] . '|' . $c['Key'] . '|' . ($c['Default'] ?? 'NULL') . PHP_EOL;
}
echo "---sample---" . PHP_EOL;
$rows = $pdo->query("SELECT member_id, intra_pw FROM edu_users ORDER BY member_id LIMIT 5")->fetchAll(PDO::FETCH_ASSOC);
foreach ($rows as $r) {
$pw = (string)($r['intra_pw'] ?? '');
$prefix = substr($pw, 0, 4);
echo $r['member_id'] . '|len=' . strlen($pw) . '|prefix=' . $prefix . PHP_EOL;
}