<? $consulta = mysql_query("SHOW FIELDS FROM `tabla`"); while ($row = mysql_fetch_row($consulta)){ echo "$row[0]<br>\n"; } ?>