|
PHP5中文手册
mysqli_select_dbmysqli->select_db()(PHP 5) mysqli->select_db() — Selects the default database for database queries 说明Procedural style:
bool mysqli_select_db
( mysqli $link
, string $dbname
)
Object oriented style (method): mysqli
bool select_db
( string $dbname
)
Selects the default database to be used when performing queries against the database connection.
参数
返回值如果成功则返回 TRUE,失败则返回 FALSE。 范例Example#1 Object oriented style
<?php Example#2 Procedural style
<?php 上例将输出:
|