DESCRIBE js_classtype
执行错误: Incorrect key file for table 'C:\Windows\TEMP\#sql7c0_135456_4.MYI'; try to repair it

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.      }
3.  class db_mysql {
4.      public $conn;
5.      public $arrSql;
6.      public function getArray($sql)
7.      {
8.          if( ! $result $this->exec($sql) )return array();
9.          if( ! mysql_num_rows($result) )return array();
10.          $rows = array();
11.          while($rows[] = mysql_fetch_array($result,MYSQL_ASSOC)){}
12.          mysql_free_result($result);
13.          array_pop($rows);
48.          return mysql_affected_rows($this->conn);
49.      }
50. 
51.      public function getTable($tbl_name)
52.      {
53.          return $this->getArray("DESCRIBE {$tbl_name}");
54.      }
55. 
56.      public function __construct($dbConfig)
57.      {
58.          $linkfunction = ( TRUE == $dbConfig['persistent'] ) ? 'mysql_pconnect' 'mysql_connect';
205. 
206.  function syDB($tbl_name$pk null){
207.      $modelObj syClass("syModel");
208.      $modelObj->tbl_name = (TRUE == $GLOBALS['G_DY']["db_spdb_full_tblname"]) ? $tbl_name :    $GLOBALS['G_DY']['db']['prefix'] . $tbl_name;
209.      if( !$pk ){
210.          @list($pk) = $modelObj->_db->getTable($modelObj->tbl_name);$pk $pk['Field'];
211.      }
212.      $modelObj->pk $pk;
213.      return $modelObj;
214.  }
215. 
51.              if($this->syArgs('page')>1){
52.                  $this->article=array_merge($this->article,array('title'=>$this->article['title'].'&nbsp;&nbsp;('.$this->syArgs('page').')'));
53.              }
54.              $this->pages=html_url('article',$this->article,$pages,$this->syArgs('page',0,1));
55.          }
56.          $this->type=syDB('classtype')->find(" molds='article' and tid=".$this->article['tid']." ",null,'tid,classname,litpic,keywords,description,t_content,htmldir,htmlfile,mrank,msubmit');
57.          if($this->type['mrank']>0){
58.              syClass('symember')->p_v($this->type['mrank']);
59.          }
60.          $this->type=array_merge($this->type,array('tid_leafid'=>$this->sy_class_type->leafid($this->article['tid'])));
61.          $this->positions='<a href="'.$GLOBALS["WWW"].'">首页</a>';
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();