summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.
*