aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/db/mysql.php
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/db/mysql.php')
-rw-r--r--phpBB/db/mysql.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/phpBB/db/mysql.php b/phpBB/db/mysql.php
index 9afe8acbe8..0e123a8244 100644
--- a/phpBB/db/mysql.php
+++ b/phpBB/db/mysql.php
@@ -30,6 +30,7 @@ class sql_db
var $db_connect_id;
var $query_result;
var $row;
+ var $num_queries = 0;
//
// Constructor
@@ -100,6 +101,8 @@ class sql_db
unset($this->query_result);
if($query != "")
{
+ $this->num_queries++;
+
$this->query_result = @mysql_query($query, $this->db_connect_id);
}
if($this->query_result)