note 44303 added to function.mysql-list-dbs

From: Date: Tue, 20 Jul 2004 20:48:19 +0000
Subject: note 44303 added to function.mysql-list-dbs
Groups: php.notes 
Request: Send a blank email to php-notes+get-73740@lists.php.net to get a copy of this message
You can also get a list of databases by using the sql query "SHOW DATABASES": <?php $query = "SHOW DATABASES"; $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); $mysql_result = mysql_query($query, $link); while ($row = mysql_fetch_row($mysql_result)) { echo $row[0]."<br>\n"; } ?> ---- Manual Page -- http://www.php.net/manual/en/function.mysql-list-dbs.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+44303 Delete -- http://master.php.net/manage/user-notes.php?action=delete+44303&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+44303&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#73740) next »