<?php
require_once "config/Conexion.php";
echo "<h1>Esquema de sri_emisor</h1>";
$sql = "DESCRIBE sri_emisor";
$rspta = ejecutarConsulta($sql);
if ($rspta) {
    echo "<table border=1><tr><th>Field</th><th>Type</th><th>Null</th><th>Key</th><th>Default</th><th>Extra</th></tr>";
    while ($reg = $rspta->fetch_object()) {
        echo "<tr>";
        echo "<td>" . $reg->Field . "</td>";
        echo "<td>" . $reg->Type . "</td>";
        echo "<td>" . $reg->Null . "</td>";
        echo "<td>" . $reg->Key . "</td>";
        echo "<td>" . $reg->Default . "</td>";
        echo "<td>" . $reg->Extra . "</td>";
        echo "</tr>";
    }
    echo "</table>";
} else {
    echo "La tabla sri_emisor NO existe.";
}
?>