php列出mysql指定数据库中的所有表
if (!function_exists('mysql_list_db_tables')) { function mysql_list_db_tables($database) { $tables = Array(); $results = mysql_query('SHOW TABLES FROM ' . $database); while($row = @mysql_fetch_assoc($results)) { $tables[] = $row['Tables_in_' . $database]; } return $tables; } }