$db_list = mysql_list_dbs

From: Date: Thu, 07 Mar 2002 04:31:17 +0000
Subject: $db_list = mysql_list_dbs
Groups: php.general 
Request: Send a blank email to php-general+get-87575@lists.php.net to get a copy of this message
mysql-list-dbs works but displays all databases. How do I limit to display those that a user has access rights to? http://www.php.net/manual/en/function.mysql-list-dbs.php $link = mysql_connect($server, $user, $password); $db_list = mysql_list_dbs($link); while ($row = mysql_fetch_object($db_list)) { echo $row->Database . "\n"; }

« previous php.general (#87575) next »