1: 2: 3: 4: 5: 6: 7:
$tables = mysql_list_tables("database"); $count = 0; while ($count < mysql_numrows($tables)) { echo mysql_tablename($tables,$count)."<br />"; $count++; }
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 />'; } }