aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2010-01-04 00:45:32 -0500
committerjhunkeler <jhunkeler@c5b2fb0a-d05d-0410-98c8-828840a80ff6>2010-01-04 00:45:32 -0500
commit8e4b86b81c04afd8045b48ab67787dbb8f4856c7 (patch)
tree3c700a7f7cdac15b0b8071a15eda40d24e7286e5
parent100a6fc122699b8c4648ad5017b76293d3ee6f1b (diff)
downloadbayonetcms-8e4b86b81c04afd8045b48ab67787dbb8f4856c7.tar.gz
Post incrementing SQL statistic variables
git-svn-id: http://svn.3rd-infantry-division.org/testing/branches/Bayonet CMS v2@452 c5b2fb0a-d05d-0410-98c8-828840a80ff6
-rw-r--r--includes/sql.class.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/includes/sql.class.php b/includes/sql.class.php
index bbc0bbb..30b87e4 100644
--- a/includes/sql.class.php
+++ b/includes/sql.class.php
@@ -28,7 +28,7 @@ class Bayonet_SQL
public function Connect($hostname, $username, $passwd)
{
global $db_connections;
- ++$db_connections;
+ $db_connections++;
$this->hostname = $hostname;
@@ -56,14 +56,14 @@ class Bayonet_SQL
public function Query($str)
{
global $db_queries;
- ++$db_queries;
+ $db_queries++;
return mysqli_query($GLOBALS['___mysqli_ston'], $str);
}
public function Free($result)
{
global $db_frees;
- ++$db_frees;
+ $db_frees++;
@((mysqli_free_result($result) || (is_object($result) && (get_class($result) == "mysqli_result"))) ? true : false);
}
@@ -75,7 +75,7 @@ class Bayonet_SQL
public function FetchArray($p_result)
{
global $db_fetches;
- ++$db_fetches;
+ $db_fetches++;
decho('Fetching result');
@@ -91,7 +91,7 @@ class Bayonet_SQL
public function FetchObject($p_result, $class, $no_array = false)
{
global $db_fetches;
- ++$db_fetches;
+ $db_fetches++;
decho("Fetching object result");
@@ -118,7 +118,7 @@ class Bayonet_SQL
public function FetchRow($p_result)
{
global $db_fetches;
- ++$db_fetches;
+ $db_fetches++;
decho("Fetching single row");