Hello.

There is a database with tables and connection to it. The name and number of tables is not known in advance. Is there a way to loop through a list of tables from the mysql database?

    1 answer 1

    $result = mysql_list_tables($dbname); while ($row = mysql_fetch_row($result)) echo $row[0]."<br>"; 

    Well, there are standard functions, why no one reads manuals?

    • Read, and even try to understand what is written there ... What for? - alexlz
    • ahahahahahaha - Artem