From e0fbcb9268d7903f26d741fb3435f496f6175822 Mon Sep 17 00:00:00 2001 From: laf Date: Wed, 18 Feb 2015 20:08:43 +0000 Subject: [PATCH] test --- includes/dbFacile.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/dbFacile.php b/includes/dbFacile.php index e85df8a1c..c3aa8ed6b 100644 --- a/includes/dbFacile.php +++ b/includes/dbFacile.php @@ -35,10 +35,13 @@ function dbQuery($sql, $parameters = array()) { */ $result = mysql_query($fullSql); // sets $this->result - if (!empty(mysql_error())) { + if (mysql_error()) { echo("\nSQL[".$fullSql."] "); print mysql_error(); } + if(mysql_error()) { + file_put_contents('/tmp/mysql_strict.log',date("Y-m-d H:i:s").','.$fullSql.','.mysql_error()."\n",FILE_APPEND); + } /* if($this->logFile) { $time_end = microtime(true);