query("SELECT content_id, category_code, category_group, title FROM edu_contents ORDER BY content_id")->fetchAll(PDO::FETCH_ASSOC); foreach($rows as $r) { echo $r['content_id'].' | cat='.$r['category_code'].' | grp='.$r['category_group'].' | '.$r['title']."\n"; } echo "\n=== edu_content_keywords 현황 (첫 20개) ===\n"; $rows2 = $pdo->query("SELECT content_id, keyword_code FROM edu_content_keywords ORDER BY content_id LIMIT 20")->fetchAll(PDO::FETCH_ASSOC); foreach($rows2 as $r) echo $r['content_id'].' | '.$r['keyword_code']."\n";