<?php
require 'config/db.php';

$stmt = $pdo->query('SELECT * FROM admins');
$admins = $stmt->fetchAll();

echo "Database records:\n";
print_r($admins);

// Test verifications
echo "\nTesting passwords:\n";
foreach ($admins as $admin) {
    $match = password_verify('password123', $admin['password']) ? "SUCCESS" : "FAIL";
    echo "ID: {$admin['id']} | User: {$admin['username']} | Test 'password123': {$match}\n";
    
    // Check hash info
    echo "Hash Info: \n";
    print_r(password_get_info($admin['password']));
}
?>
