This commit is contained in:
laf
2015-02-26 23:04:07 +00:00
parent 984e4a8cab
commit e0fbcb9268
+4 -1
View File
@@ -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);