<?php
include 'includes/db.php';

echo "Database: " . $dbname . "\n";
echo "Host: " . $servername . "\n";

$result = $conn->query("SHOW COLUMNS FROM applications");
if ($result) {
    echo "Columns in 'applications' table:\n";
    while ($row = $result->fetch_assoc()) {
        echo "- " . $row['Field'] . " (" . $row['Type'] . ")\n";
    }
} else {
    echo "Error showing columns: " . $conn->error . "\n";
}
?>
