php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #21932 Error in mysql_list_dbs documentation
Submitted: 2003-01-29 03:35 UTC Modified: 2003-01-30 08:21 UTC
From: piat at besancon dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.3.0 OS:
Private report: No CVE-ID: None
 [2003-01-29 03:35 UTC] piat at besancon dot net
The mysql_list_dbs look like this :
mysql_list_dbs() will return a result pointer containing the databases available from the current mysql daemon. Use the mysql_tablename() function to traverse this result pointer, or any function for result tables. 

The second sentence is false : it's not the mysql_tablename() function but the mysql_db_name() function we must use for traversing the result pointer.


Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-01-30 08:21 UTC] dams@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.

It works with both mysql_tablename, mysql_db_name and all the mysql_fetch functions.

I've updated the doc for more clarity.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Aug 15 15:01:27 2024 UTC