September 2001
Intermediate to advanced
768 pages
32h 45m
English
bool mysql_select_db(string database_name, [mysql link connection])
| database_name | Database to select |
| connection | Connection handle returned by mysql_connect() or mysql_pconnect() |
Sets the active database.
Returns:
TRUE on success; FALSE otherwise
Description:
mysql_select_db() sets the active database for the connection referenced by connection . If no connection handle is specified in the connection argument, the last connection opened is used by default. If no connection is open, mysql_select_db() attempts to connect to a MySQL database by calling mysql_connect() without arguments.
The active database works with mysql_query(), providing the default database for queries. See mysql_query() for more information.
Note:
This ...
Read now
Unlock full access