UPDATE dy_article SET hits = hits + 1 WHERE id = '4921'
执行错误: File './www_hppx_net/dy_article.MYD' not found (Errcode: 13 - Permission denied)

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);
130.       }
131. 
132.      }
133.      function hits(){
134.          if($this->syArgs('id')){
135.              syDB('article')->incrField(array('id'=>$this->syArgs('id')), 'hits');
136.              $hits=syDB('article')->find(array('id'=>$this->syArgs('id')),null,'hits');
137.              echo 'document.write("'.$hits['hits'].'");';
138.          }
139.      }
140.      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.  $doyoConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$doyoConfig['ext']['view_themes'];
4.  require(DOYO_PATH."/sys.php");
5.  spRun();