msql_select_db

(PHP 3, PHP 4, PHP 5)

msql_select_db -- Select mSQL database

說明

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.

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

參數

database_name

The database name.

link_identifier

mSQL 的連線標識符。若果沒有指定,預設使用最後被 msql_connect() 開啟的連線。若果沒有找到該連線,函數會嘗試通過呼叫 msql_connect() 建立連線並使用它。

返回值

若果成功則返回 TRUE,失敗則返回 FALSE