<?php
require_once __DIR__ . '/../config/database.php';

try {
    $db = getDB();
    $stmt = $db->query('SELECT photo FROM researcher_profiles WHERE photo IS NOT NULL AND photo != "" LIMIT 10');
    $photos = $stmt->fetchAll(PDO::FETCH_COLUMN);
    foreach ($photos as $photo) {
        echo $photo . "\n";
    }
} catch (Exception $e) {
    echo 'Error: ' . $e->getMessage() . "\n";
}
?>