Que tal
no_se_nada, puedes hacer algo como esto
Código PHP:
$consulta = "SHOW FIELDS FROM tabla";
$resultado = mysql_query($consulta, $conex) or die ( mysql_error() );
while($datos = mysql_fetch_array($resultado)){
echo $datos['Field'];}
Y tambien puedes utlizar la función
mysql_field_name().
Saludos.