english/libraries/joomla/database/database/mysqli.php
/**
	 * Select a database for use.
	 *
	 * @param   string  $database  The name of the database to select for use.
	 *
	 * @return  boolean  True if the database was successfully selected.
	 *
	 * @since   11.1
	 * @throws  DatabaseException
	 */
Select a database for use.
@param   string  $database  The name of the database to select for use.

@return  boolean  True if the database was successfully selected.


Select a database for use . @param string $database The name of the database to select for use . @return boolean True if the database was successfully selected .
public function select($database)
	{
		if (!$database) {
			return false;
		}
		if (!mysqli_select_db($this->connection, $database)) {
			if (JError::$legacy) {
				$this->errorNum = 3;
				$this->errorMsg = JText::_('JLIB_DATABASE_ERROR_DATABASE_CONNECT');
				return false;
			}
			else {
				throw new DatabaseException(JText::_('JLIB_DATABASE_ERROR_DATABASE_CONNECT'));
			}
		}
		return true;
	}
public function select ( $ database ) { if ( ! $ database ) { return false ; } if ( ! mysqli_select_db ( $ this -> connection , $ database ) ) { if ( JError :: $ legacy ) { $ this -> errorNum = 3 ; $ this -> errorMsg = JText :: _ ( 'JLIB_DATABASE_ERROR_DATABASE_CONNECT' ) ; return false ; } else { throw new DatabaseException ( JText :: _ ( 'JLIB_DATABASE_ERROR_DATABASE_CONNECT' ) ) ; } } return true ; }
Select a database for use.
Select a database for use .
// Legacy error handling switch based on the JError::$legacy switch. // @deprecated  11.3