ADOdb

Database Abstraction Layer for PHP

User Tools

Site Tools


v5:reference:connection:close

close

Syntax
 void function close()

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.

Calling this function is not recommended and usually unnecessary, as Database connections are automatically cleaned up when scripts end.

v5/reference/connection/close.txt · Last modified: 2021/08/24 01:29 by dregad