ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:close

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
v5:reference:close [2016/01/13 02:30] – ↷ Page moved from reference:close to v5:reference:close mnewnhamv5:reference:connection:close [2021/08/24 01:29] (current) – Fixing issue #665 dregad
Line 1: Line 1:
 ====== close ====== ====== close ======
-<WRAP info> +
-This function, when called either as ''$database->close()'' or ''$recordset->close()'', shuts down the database connection object, which cannot be re-established for the remainder of the script. Its use is not recommended. Database connections are automatically cleaned up when scripts end. +
-</WRAP>+
 <WRAP right box> <WRAP right box>
 == Syntax == == Syntax ==
    void function close()    void function close()
 </WRAP> </WRAP>
 +
 +This function closes the Database Connection or the RecordSet.
 +
 +  * ''ADOConnection::close()'' shuts down the database connection object, which cannot be re-established for the remainder of the script.
 +  * ''ADORecordSet::close()'' cleans up and releases the RecordSet.
 +
 +<WRAP info>
 +Calling this function is **not recommended** and usually unnecessary, 
 +as Database connections are automatically cleaned up when scripts end.
 +</WRAP>
 +
v5/reference/connection/close.1452648631.txt.gz · Last modified: 2017/04/21 11:36 (external edit)