PHP. Руководство по PHP. 2005
maxdb_select_db
maxdb_select_db
(PECL)maxdb_select_db
(no version information, might be only in CVS)maxdb->select_db -- Selects the default database for database queries
Description
bool maxdb_select_db (resource link, string dbname)The maxdb_select_db() function selects the default database (specified by the dbname parameter) to be used when performing queries against the database connection represented by the link parameter.
Замечание: This function should only be used to change the default database for the connection. You can select the default database with 4th parameter in maxdb_connect().
Return values
Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.
See also
maxdb_connect() maxdb_real_connect()
Example
Пример 2. Procedural style
|
The above examples would produce the following output:
Default database is <...>. |
maxdb_rpl_query_type
maxdb_send_long_data