summaryrefslogtreecommitdiffstats
path: root/Db.class.php
diff options
context:
space:
mode:
authorIndieteq <admin@indieteq.com>2014-01-03 15:46:10 +0100
committerIndieteq <admin@indieteq.com>2014-01-03 15:46:10 +0100
commit5d5cd89a6ce41568d4a1be809390b7fcdb2cb6d6 (patch)
tree9a88f43a923c27d321346bf5627cb067d16b5b9a /Db.class.php
parentcfa2fe3ed39a315f5dc33fce582d64d4854f6a9c (diff)
downloadphp-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
Diffstat (limited to 'Db.class.php')
-rw-r--r--Db.class.php11
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.
*