$connection = @mysql_connect("mysql153.secureserver.net", "rntsoft", "password") or die(mysql_error());
$dbs = @mysql_list_dbs($connection)or die(mysql_error());
$db_list ="";
$i =0;
while ($i < mysql_num_rows($dbs)){
$db_names[$i] = mysql_tablename($dbs,$i);
$db_list .= "- $db_names[$i]";
$i++;
}
$db_list .="
";
?>
MySQL Databases
Databases on localhost:
echo "$db_list"; ?>