|
mysql_list_tablesList tables in a MySQL database Warning
This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQL extension should be used. See also MySQL: choosing an API guide and related FAQ for more information. Alternatives to this function include:
Description
resource mysql_list_tables
( string
$database
[, resource $link_identifier = NULL
] )Retrieves a list of table names from a MySQL database. This function is deprecated. It is preferable to use mysql_query to issue an SQL SHOW TABLES [FROM db_name] [LIKE 'pattern'] statement instead. Parameters
Return Values
A result pointer resource on success or Use the mysql_tablename function to traverse this result pointer, or any function for result tables, such as mysql_fetch_array. Changelog
Examples
Example #1 mysql_list_tables alternative example
<?php Notes
See Also
|