mysql_dbname

mysql_dbname -- get current MySQL database name

Description

string mysql_dbname(string result, int i);

mysql_dbname() returns the database name stored in position i of the result pointer returned from the mysql_list_dbs() function. The mysql_num_rows() function can be used to determine how many database names are available.