query('SELECT COUNT(*) FROM recipes')->fetchColumn(); echo "Verbindung OK. Rezepte in DB: {$count}\n"; if ($count > 0) { $stmt = $pdo->query("SELECT slug, data->'i18n'->'en'->>'title' AS title FROM recipes LIMIT 5"); echo "\nBeispiel-Zeilen:\n"; while ($row = $stmt->fetch()) { echo " - {$row['slug']}: {$row['title']}\n"; } }