note 42950 deleted from function.mysql-db-name by vincent
| From: | vincent@php.net | Date: | Wed, 09 Jun 2004 12:18:23 +0000 |
| Subject: | note 42950 deleted from function.mysql-db-name by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-70564@lists.php.net to get a copy of this message | ||
Note Submitter: luse
----
ERROR IN THE PREVIOUS EXAMPLE:
<?php
error_reporting(E_ALL);
mysql_connect('localhost', 'luse87', 'cricetus');
------------
$lista_db = mysql_list_dbs();
------------
$i = 0;
$conteggio = mysql_num_rows($lista_db);
while ($i < $conteggio) {
echo mysql_db_name($lista_db, $i) . "\n";
$i++;
}
?>