<?php
require_once 'config.php';

$pdo = getDB();

echo "<h2>App Versions Table:</h2>";
try {
    $stmt = $pdo->query("SELECT * FROM app_versions");
    echo "<pre>";
    while ($row = $stmt->fetch(PDO::FETCH_ASSOC)) {
        print_r($row);
    }
    echo "</pre>";
} catch (Exception $e) {
    echo "Table doesn't exist yet. Visit admin/versions.php to create it.";
}
