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

$stmt = $pdo->query('SELECT id, name, session, group_name FROM exams WHERE id = 68');
$exam = $stmt->fetch();

echo "<h2>Exam Data:</h2>";
echo "<pre>";
print_r($exam);
echo "</pre>";

// Also check the session value specifically
echo "<p>Session value: '" . $exam['session'] . "'</p>";
echo "<p>Session length: " . strlen($exam['session']) . "</p>";
?>