<?php
error_reporting(E_ERROR | E_PARSE);
include '../conector.php';

$sql = "DESCRIBE planilla_consulta";
$res = mysql_query($sql);
echo "Columnas de planilla_consulta:\n";
$i = 0;
while($row = mysql_fetch_assoc($res)){
    echo "$i: " . $row['Field'] . " - " . $row['Type'] . "\n";
    $i++;
}
?>