<?php
require_once 'config/database.php';
try {
    $stmt = $pdo->query('SELECT username FROM users LIMIT 5');
    $users = $stmt->fetchAll();
    echo 'Available users: ';
    foreach ($users as $user) {
        echo $user['username'] . ' ';
    }
    echo PHP_EOL;
} catch (Exception $e) {
    echo 'Error: ' . $e->getMessage() . PHP_EOL;
}
?>

