note 4976 deleted from mysql_list_dbs by danbeck
| From: | danbeck@php.net | Date: | Thu, 07 Sep 2000 16:28:02 +0000 |
| Subject: | note 4976 deleted from mysql_list_dbs by danbeck | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4399@lists.php.net to get a copy of this message | ||
To list the databases returned by the query try this:
<pre>
$databases=mysql_list_dbs($link);
while ($myrow=mysql_fetch_row($databases)) {
printf("%sn", $myrow[0]);
}
</pre>
The key here is mysql_fetch_row obviously use whatever you want for the loop or print function.