|
PHP5中文手册
ingres_connect(PHP 4 >= 4.0.2, PHP 5 <= 5.0.5, PECL ingres:1.0-1.4.3) ingres_connect — Open a connection to an Ingres database 说明
resource ingres_connect
([ string $database
[, string $username
[, string $password
[, array $options
]]]] )
ingres_connect() opens a connection with the given Ingres database . The connection is closed when the script ends or when ingres_close() is called on this link. All the other ingres functions use the last opened link as a default, so you need to store the returned value only if you use more than one link at a time. 参数If some parameters are missing, ingres_connect() uses the values in php.ini for ingres.default_database , ingres.default_user and ingres.default_password .
返回值Returns a Ingres link resource on success, or FALSE on failure. 范例
Example#1 ingres_connect() example
<?php Example#2 ingres_connect() example using default link
<?php |