string mysql_db_name ( resource $result , int $row [, mixed $field ] )
Retrieve the database name from a call to mysql_list_dbs().
Returns the database name on success, and FALSE on failure. If FALSE is returned, use mysql_error() to determine the nature of the error.