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; } }
复制代码
数据库中, php, mysql
