DESCRIBE jw_molds
执行错误: Got error 28 from storage engine

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';
287. 
288.  function syDB($tbl_name$pk null){
289.      $modelObj syClass("syModel");
290.      $modelObj->tbl_name = (TRUE == $GLOBALS['G_DY']["db_spdb_full_tblname"]) ? $tbl_name :    $GLOBALS['G_DY']['db']['prefix'] . $tbl_name;
291.      if( !$pk ){
292.          @list($pk) = $modelObj->_db->getTable($modelObj->tbl_name);$pk $pk['Field'];
293.      }
294.      $modelObj->pk $pk;
295.      return $modelObj;
296.  }
297. 
556.      $c=syDB('custom')->find(array('file' => $file));
557.      return $c;
558.  }
559.  //频道信息获取
560.  function moldsinfo($molds,$q){
561.      $m=syDB('molds')->find(array('molds' => $molds),null,$q);
562.      return $m[$q];
563.  }
564.  //内容信息获取
565.  function contentinfo($molds,$id,$q){
566.      $c=syDB($molds)->find(array('id' => $id),null,$q);
3.  class article extends syController
4.  {
5.      function __construct(){
6.          parent::__construct();
7.          $this->molds 'article';
8.          $this->moldname=moldsinfo('article','moldname');
9.          $this->sy_class_type=syClass('syclasstype');
10.          $this->Class=syClass('c_article');
11.          $this->db=$GLOBALS['G_DY']['db']['prefix'].'article';
12.      }
13.      function index(){
172.          }
173.      }
174.      if(FALSE != $has_define){
175.          $argString '';$comma ''
176.          if(null != $args)for ($i 0$i count($args); $i ++) { $argString .= $comma "\$args[$i]"$comma ', ';}
177.          eval("\$GLOBALS['G_DY']['inst_class'][\$class_name]= new \$class_name($argString);"); 
178.          return $GLOBALS['G_DY']["inst_class"][$class_name];
179.      }
180.      syError($class_name."类定义不存在,请检查。");
181.  }
182.  function curl_get($url) {
7.          exit;
8.      }
9.      //print_r(syClass('sysession'));die;
10.      syClass('sysession');
11.      spLaunch("router_prefilter");
12.      $handle_controller syClass($__controllernull$GLOBALS['G_DY']["controller_path"].'/'.$__controller.".php");
13.      if(!is_object($handle_controller) || !method_exists($handle_controller$__action)){
14.          syError('route Error');
15.          exit;
16.      }
17.      $handle_controller->$__action();
1.  <?php
2.  require("config.php");
3.  $jwcomConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$jwcomConfig['ext']['view_themes'];
4.  require(JWCOM_PATH."/sys.php");
5.  spRun();