note 53555 added to function.mysql-list-dbs
| From: | vladson at pc-labs dot info | Date: | Mon, 06 Jun 2005 01:58:45 +0000 |
| Subject: | note 53555 added to function.mysql-list-dbs | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-89980@lists.php.net to get a copy of this message | ||
I think it's better this way...
<?php
function sql_list_dbs($link) {
$result = mysql_query('SHOW DATABASES;', $link);
while( $data = mysql_fetch_row($result) ) {
$array[] = $data[0];
}
return $array;
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.mysql-list-dbs.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53555
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53555&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53555&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53555&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53555&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53555&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53555&report=yes
Search -- http://master.php.net/manage/user-notes.php