function query($sql) { $sql = help::CheckSql($sql); if (!($query = @mysql_query($sql, $this->linkid))) { $this->dbshow("Query error:{$sql}"); } else { return $query; } }
function query($sql) { $sql = help::CheckSql($sql); error_log($sql . "\n", 3, "/data/logs/74cms/74cms.log"); if (!($query = @mysql_query($sql, $this->linkid))) { $this->dbshow("Query error:{$sql}"); } else { return $query; } }