PHP. Руководство по PHP. 2005
maxdb_real_connect
maxdb_real_connect
(PECL)maxdb_real_connect
(no version information, might be only in CVS)maxdb->real_connect -- Opens a connection to a MaxDB server
Description
Procedural stylebool maxdb_real_connect (resource link [, string hostname [, string username [, string passwd [, string dbname [, int port [, string socket]]]]]])
Object oriented style (method)class maxdb {
bool real_connect ([string hostname [, string username [, string passwd [, string dbname [, int port [, string socket]]]]]])
}
maxdb_real_connect() attempts to establish a
connection to a MaxDB database engine running on
hostname.
This function differs from maxdb_connect():
maxdb_real_connect() needs a valid resource which has
to be created by function maxdb_init()
With function maxdb_options() you can set various options for connection.
Возвращаемые значения
Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.
Example
Пример 2. Procedural style
|
The above examples would produce the following output:
Connection: localhost <...> |
maxdb_query
maxdb_real_escape_string