Index: db_connection.php =================================================================== --- db_connection.php (revision 14094) +++ db_connection.php (working copy) @@ -244,6 +244,7 @@ $this->Query('SET NAMES \''.SQL_CHARSET.'\' COLLATE \''.SQL_COLLATION.'\''); } + $this->setError(0, ''); // reset error $this->setDB($db); } @@ -277,8 +278,6 @@ */ function showError($sql = '') { - $this->setError(0, ''); // reset error - if (!$this->connectionID) { return ; } @@ -436,6 +435,7 @@ } // set 1st checkpoint: end + $this->setError(0, ''); // reset error $this->queryID = $query_func($sql,$this->connectionID); if (is_resource($this->queryID)) { $ret = Array(); @@ -494,6 +494,7 @@ } // set 1st checkpoint: end + $this->setError(0, ''); // reset error $this->queryID = $query_func($sql, $this->connectionID); if( is_resource($this->queryID) )