Firebird/InterBase 函数
在线手册:中文  英文

ibase_close

(PHP 5)

ibase_closeClose a connection to an InterBase database

说明

bool ibase_close ([ resource $connection_id = NULL ] )

Closes the link to an InterBase database that's associated with a connection id returned from ibase_connect(). Default transaction on link is committed, other transactions are rolled back.

参数

connection_id

An InterBase link identifier returned from ibase_connect(). If omitted, the last opened link is assumed.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

参见


Firebird/InterBase 函数
在线手册:中文  英文

用户评论:

(2002-04-02 03:18:12)

Before close the connection remember to free your query results too...
$dbh = ibase_connect($host, $username, $password);
$stmt = 'SELECT * FROM tblname';
$sth = ibase_query($dbh, $stmt);
while ($row = ibase_fetch_object($sth)) {
.............
}
ibase_free_result($sth); // <-------
ibase_close($dbh);

易百教程