PHP 8.4.0 RC4 available for testing

ibase_close

(PHP 5, PHP 7 < 7.4.0)

ibase_closeClose a connection to an InterBase database

Опис

ibase_close(resource $connection_id = null): bool

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 в разі помилки.

Прогляньте також

add a note

User Contributed Notes 1 note

up
0
Anonymous
22 years ago
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);
To Top