summaryrefslogtreecommitdiffstats
path: root/include/db.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/db.php')
-rw-r--r--include/db.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/db.php b/include/db.php
index 28100a7..b84a566 100644
--- a/include/db.php
+++ b/include/db.php
@@ -61,8 +61,18 @@ function DB_query($query)
/* debug/optimize the database
$logfile=fopen('/tmp/DBlog.log','a+');
fwrite($logfile,"EXPLAIN $query ;\n");
+
+ $time = microtime();
+ $return = mysql_query($query);
+ $time = $time - microtime();
+
+ fwrite($logfile,"time of above query: $time\n");
+
fclose($logfile);
+
+ return $return;
*/
+
return mysql_query($query);
}