예제 #1
0
 function query($sql)
 {
     $sql = help::CheckSql($sql);
     if (!($query = @mysql_query($sql, $this->linkid))) {
         $this->dbshow("Query error:{$sql}");
     } else {
         return $query;
     }
 }
예제 #2
0
 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;
     }
 }