<?php
session_start();
error_reporting(E_ALL);
ini_set('display_errors', 1);

require_once __DIR__ . '/../../includes/config.php';

echo 'Config OK<br>';

$pdo = getDB();
echo 'DB OK<br>';

// Testar query
$result = $pdo->query('SELECT COUNT(*) FROM stores');
echo 'Stores count: ' . $result->fetchColumn() . '<br>';

echo 'Session: ';
print_r($_SESSION);

