From 0aec7ea5cddaea554b4b1439fc065bf1dd8a6d1b Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Fri, 10 May 2002 02:57:28 +0000 Subject: [PATCH] major update: rewrote example, returns false on failure, described the required 'database' parameter, a little WS. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@81661 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../mysql/functions/mysql-list-tables.xml | 40 +++++++++++++------ 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/reference/mysql/functions/mysql-list-tables.xml b/reference/mysql/functions/mysql-list-tables.xml index c60c2ec853..fd953a7c79 100644 --- a/reference/mysql/functions/mysql-list-tables.xml +++ b/reference/mysql/functions/mysql-list-tables.xml @@ -1,5 +1,5 @@ - + @@ -21,25 +21,41 @@ mysql_query function. You can use the mysql_tablename function to extract the actual table names from the result pointer, or any other result - table function. + table function such as mysql_fetch_assoc. - For downward compatibility mysql_listtables - can also be used. This is deprecated however. + The database parameter is the name of the + database to retrieve the list of tables from. Upon failure, + mysql_list_tables returns &false;. + + + For downward compatibility, the function alias named + mysql_listtables can be used. This is + deprecated however and is not recommended. mysql_list_tables Example - + @@ -48,7 +64,7 @@ See also: mysql_list_dbs, - mysql_tablename. + and mysql_tablename.