mysql_list_dbs([link_id])
This function returns a result set containing a list of the databases available from the current or specified (link_id) MySQL connection. Use mysql_db_name to retrieve the individual database names from this result set.
The function name mysql_listdbs may also be used, but is deprecated.