PHP 매뉴얼
이전 |  | 다음

# msql_select_db

(PHP 3, PHP 4 , PHP 5)

msql_select_db -- Select mSQL database

## Description

bool msql_select_db ( string database_name [, resource link_identifier])

msql_select_db() sets the current active database on the server that's associated with the specified `link_identifier`. If no link identifier is specified, the last opened link is assumed. If no link is open, the function will try to establish a link as if msql_connect() was called, and use it.

성공일 경우 `TRUE`를, 실패일 경우 `FALSE`를 반환합니다.

Subsequent calls to msql_query() will be made on the active database.

For downward compatibility, the alias named msql_selectdb() may be used. This, however, is deprecated and not recommended.

See also msql_connect(), msql_pconnect(), and msql_query().

이전 | 처음으로 | 다음
msql_result | 위로 | msql_tablename