maxdb_connect maxdb() Open a new connection to the MaxDB server Description Procedural style resourcemaxdb_connect stringhost stringusername stringpasswd stringdbname intport stringsocket Object oriented style (constructor): maxdb __construct stringhost stringusername stringpasswd stringdbname intport stringsocket The maxdb_connect function attempts to open a connection to the MaxDB Server running on host which can be either a host name or an IP address. Passing the string "localhost" to this parameter, the local host is assumed. If successful, the maxdb_connect will return an resource representing the connection to the database, or &false; on failure. The username and password parameters specify the username and password under which to connect to the MaxDB server. If the password is not provided (the &null; value is passed), the MaxDB server will attempt to authenticate the user against the maxdb.default_pw in &php.ini;. The dbname parameter if provided will specify the default database to be used when performing queries. If not provied, the entry maxdb.default_db in &php.ini; is used. The port and socket parameters are ignored for the MaxDB server. Return values Returns a resource which represents the connection to a MaxDB Server or &false; if the connection failed. Example Object oriented style host_info); /* close connection */ $maxdb->close(); ?> ]]> Procedural style ]]> The above examples would produce the following output: