PDO::ERRMODE_EXCEPTION, PDO::ATTR_DEFAULT_FETCH_MODE => PDO::FETCH_ASSOC, ]; try { $pdo = new PDO($dsn, $cfg['db_username'], $cfg['db_password'], $options); } catch (PDOException $e) { error_log('Database connection failed: ' . $e->getMessage()); http_response_code(500); exit('Service unavailable'); } $app_id_raw = $_GET['id'] ?? ''; $token = $_GET['token'] ?? ''; $app_id = preg_match('/^\d+$/', $app_id_raw) ? $app_id_raw : '0'; // Fetch applications $stmt = $pdo->query("SELECT id, reference, client_email FROM applications ORDER BY id DESC"); $applications = $stmt->fetchAll(); ?> Admin Dashboard - Application Stages

Applications

ID Reference Client Email Actions
Edit Timeline View as Client