diff options
author | Indieteq <admin@indieteq.com> | 2014-01-03 15:46:10 +0100 |
---|---|---|
committer | Indieteq <admin@indieteq.com> | 2014-01-03 15:46:10 +0100 |
commit | 5d5cd89a6ce41568d4a1be809390b7fcdb2cb6d6 (patch) | |
tree | 9a88f43a923c27d321346bf5627cb067d16b5b9a | |
parent | cfa2fe3ed39a315f5dc33fce582d64d4854f6a9c (diff) | |
download | php-mysql-pdo-database-class-5d5cd89a6ce41568d4a1be809390b7fcdb2cb6d6.zip php-mysql-pdo-database-class-5d5cd89a6ce41568d4a1be809390b7fcdb2cb6d6.tar.gz php-mysql-pdo-database-class-5d5cd89a6ce41568d4a1be809390b7fcdb2cb6d6.tar.bz2 |
Added close connection methode
-rw-r--r-- | Db.class.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Db.class.php b/Db.class.php index 813de24..4780607 100644 --- a/Db.class.php +++ b/Db.class.php @@ -75,6 +75,17 @@ class DB die(); } } + /* + * You can use this little method if you want to close the PDO connection + * + */ + private function CloseConnection() + { + # Set the PDO object to null to close the connection + # http://www.php.net/manual/en/pdo.connections.php + $this->pdo = null; + } + /** * Every method which needs to execute a SQL query uses this method. * |