The code is as follows:
1 2 3 4 5 6 7 8 9 10 |
|
But because the mysql_list_tables method is obsolete, when running the above program, a prompt message indicating that the method is outdated will be given, as follows:
1 |
|
A solution is Set error_reporting in php.ini and do not display the method obsolescence prompt message
1 |
|
Another method is to use the alternative method officially recommended by PHP:
1 2 3 4 5 6 7 8 9 10 |
|
Related articles:
php code to get all table names in mysql database
PHP method to get mysql database table fields
php Get the mysql database version number mysql_get_server_info