UPDATE cem_article SET hits = hits + 1 WHERE id = '40'
执行错误: UPDATE command denied to user 'bdm25313798'@'123.56.138.53' for table 'cem_article'

34.          $this->arrSql[] = $sql;
35.          if( $result mysql_query($sql$this->conn) ){
36.              return $result;
37.          }else{
38.              if(mysql_error()!=''){
39.                  syError("{$sql}<br />执行错误: " mysql_error());
40.              }else{
41.                  return TRUE;
42.              }
43.          }
44.      }
215.          }else{
216.              if(null != $conditions)$where "WHERE ".$conditions;
217.          }
218.          $values "{$field} = {$field} + {$optval}";
219.          $sql "UPDATE {$this->tbl_name} SET {$values} {$where}";
220.          return $this->_db->exec($sql);
221.      }
222. 
223.      public function decrField($conditions$field$optval 1)
224.      {
225.          return $this->incrField($conditions$field, - $optval);
112.          }
113.          $this->display('article/'.$t);
114.      }
115.      function hits(){
116.          if($this->syArgs('id')){
117.              syDB('article')->incrField(array('id'=>$this->syArgs('id')), 'hits');
118.              $hits=syDB('article')->find(array('id'=>$this->syArgs('id')),null,'hits');
119.              echo 'document.write("'.$hits['hits'].'");';
120.          }
121.      }
122.      function search(){
11.      $handle_controller syClass($__controllernull$GLOBALS['G_DY']["controller_path"].'/'.$__controller.".php");
12.      if(!is_object($handle_controller) || !method_exists($handle_controller$__action)){
13.          syError('route Error');
14.          exit;
15.      }
16.      $handle_controller->$__action();
17.      if(FALSE != $GLOBALS['G_DY']['view']['auto_display']){
18.          $__tplname $__controller.$GLOBALS['G_DY']['view']['auto_display_sep'].
19.                  $__action.$GLOBALS['G_DY']['view']['auto_display_suffix']; 
20.          $handle_controller->auto_display($__tplname);
21.      }
1.  <?php
2.  require("config.php");
3.  $GzCConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$GzCConfig['ext']['view_themes'];
4.  require(GzC_PATH."/sys.php");
5.  spRun();