<?php
$mysqli = new mysqli("localhost", "root", "", "mcc_lms");
if ($mysqli->connect_error) {
    die("Connection failed: " . $mysqli->connect_error);
}

echo "=== LEARNING_MATERIALS ===\n";
$result = $mysqli->query("DESCRIBE learning_materials");
if ($result) {
    while($row = $result->fetch_assoc()) { print_r($row); }
} else { echo "Error: " . $mysqli->error . "\n"; }

$mysqli->close();
