1: 2: 3: 4: 5: 6: 7: 8:
$vQuery = mysql_query('SHOW TABLES'); while($vTable = mysql_fetch_array($vQuery)){ print 'Table: '.$vTable[0].'<br />'; $vQuery2 = mysql_query('SHOW COLUMNS FROM '.$vTable[0]); while($vField = mysql_fetch_array($vQuery2)){ print ' - '.$vField[0].'<br />'; } }