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);
ibase_close
(PHP 4, PHP 5)
ibase_close — Close 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를 반환합니다.
참고
- ibase_connect() - Open a connection to an InterBase database
- ibase_pconnect() - Open a persistent connection to an InterBase database
ibase_close
02-Apr-2002 11:18
