Código PHP:
<?php
$link = mysql_connect('localhost', 'mysql_user', 'mysql_password');
$db_list = mysql_list_dbs($link);
while ($row = mysql_fetch_object($db_list)) {
echo $row->Database . "\n";
}
?>
Warning: mysql_list_dbs() [function.mysql-list-dbs]: Unable to save MySQL query result in /home/vol9/********.com/********/htdocs/prueba.php on line 10
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /home/vol9/*******.com/********/htdocs/prueba.php on line 12
la linea 10 es
$db_list = mysql_list_dbs($link);
la linea 12
while ($row = mysql_fetch_object($db_list)) {
agradezco su ayuda