diff options
-rw-r--r-- | engine/lib/database.php | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/engine/lib/database.php b/engine/lib/database.php index c637b1d24..62fa15877 100644 --- a/engine/lib/database.php +++ b/engine/lib/database.php @@ -218,7 +218,12 @@ $dblink = get_db_link('write');
- $dbcalls++;
+ $dbcalls++; + + if ((isset($CONFIG->debug)) && ($CONFIG->debug==true)) + { + error_log("--- DB QUERY --- $query"); + }
if (mysql_query("$query", $dblink))
return mysql_insert_id($dblink); @@ -245,7 +250,12 @@ $dblink = get_db_link('write');
- $dbcalls++;
+ $dbcalls++; + + if ((isset($CONFIG->debug)) && ($CONFIG->debug==true)) + { + error_log("--- DB QUERY --- $query"); + }
if (mysql_query("$query", $dblink))
return mysql_affected_rows(); @@ -273,7 +283,12 @@ $dblink = get_db_link('write');
- $dbcalls++;
+ $dbcalls++; + + if ((isset($CONFIG->debug)) && ($CONFIG->debug==true)) + { + error_log("--- DB QUERY --- $query"); + }
if (mysql_query("$query", $dblink))
return mysql_affected_rows();
|