Web студия "GrandView"
  Главная   Написать Контакты
   
   
О проекте
Руководство php
 

ibase_close

(PHP 3 >= 3.0.6, PHP 4, PHP 5)

ibase_close --  Close a connection to an InterBase database

Description

bool ibase_close ( [resource connection_id] )

Closes the link to an InterBase database that's associated with a connection id returned from ibase_connect(). If the connection id is omitted, the last opened link is assumed. Default transaction on link is committed, other transactions are rolled back. Возвращает TRUE в случае успешного завершения или FALSE в случае возникновения ошибки.

See also ibase_connect() and ibase_pconnect().



add a note add a note User Contributed Notes
ibase_close
php dot planetmirror dot com at issystems dot co dot nz
22-Dec-2004 01:38
In the preceding note,

$sth = ibase_query($dbh, $stmt);
^^^^ this is a query (or statement handle)

while ($row = ibase_fetch_object($sth)) {
       ^^^^ this is a result

So the end is wrong, because $sth isn't a result

ibase_free_result($sth);  //  <-------
ibase_close($dbh);

It should really read as follows:

ibase_free_result($row);
ibase_free_query($sth);
ibase_close($dbh);
02-Apr-2002 03:18
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_commit_ret> <ibase_blob_open
Last updated: Fri, 26 Jan 2007
 
 
Новости
11 июля 2007
Сайт запущен
© 2007 info@grandviewstudio.com

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 324

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 330
Z058440144362 Z348613067571