(PHP 3, PHP 4 >= 4.0b1)
int msql_list_dbs ()
int msql_list_dbs
msql_list_dbs() will return a result pointer containing the databases available from the current msql daemon. Use the msql_dbname() function to traverse this result pointer.