Home > PHP > Function > MySQL > mysql_db_name()

mysql_db_name()

mysql_db_name - Get result data

Syntax

string mysql_db_name (resource $result, int $row, mixed $field)

Arguments

  • result - The result pointer from a call to mysql_list_dbs().
  • row - The index into the result set.
  • field - The field name.

Description

Retrieve the database name from a call to mysql_list_dbs().

Version

PHP 4, 5

Return value

Returns the database name on success, and FALSE on failure. If FALSE is returned, use mysql_error() to determine the nature of the error.