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";
 }




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to