DESCRIBE dy_fields
执行错误: Got error 28 from storage engine
- C:\wwwroot\bjzzzd\include\mysql.php on line 39
34. 
        $this->arrSql[] = $sql;
35. 
        if( $result = mysql_query($sql, $this->conn) ){
36. 
            return $result;
37. 
        }else{
38. 
            if(mysql_error()!=''){
39. 
40. 
                syError("{$sql}<br />执行错误: " . mysql_error());
            }else{
41. 
                return TRUE;
42. 
            }
43. 
        }
44. 
    }
- C:\wwwroot\bjzzzd\include\mysql.php on line 8
3. 
class db_mysql {
4. 
    public $conn;
5. 
    public $arrSql;
6. 
    public function getArray($sql)
7. 
    {
8. 
9. 
        if( ! $result = $this->exec($sql) )return array();
        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);
- C:\wwwroot\bjzzzd\include\mysql.php on line 53
48. 
        return mysql_affected_rows($this->conn);
49. 
    }
50. 
51. 
    public function getTable($tbl_name)
52. 
    {
53. 
54. 
        return $this->getArray("DESCRIBE {$tbl_name}");
    }
55. 
56. 
    public function __construct($dbConfig)
57. 
    {
58. 
        $linkfunction = ( TRUE == $dbConfig['persistent'] ) ? 'mysql_pconnect' : 'mysql_connect';
- C:\wwwroot\bjzzzd\include\Functions.php on line 301
296. 
}
297. 
function syDB($tbl_name, $pk = null) {
298. 
    $modelObj = syClass("syModel");
299. 
    $modelObj->tbl_name = (TRUE == $GLOBALS['G_DY']["db_spdb_full_tblname"]) ? $tbl_name : $GLOBALS['G_DY']['db']['prefix'] . $tbl_name;
300. 
    if (!$pk) {
301. 
302. 
        @list($pk) = $modelObj->_db->getTable($modelObj->tbl_name);
        $pk = $pk['Field'];
303. 
    }
304. 
    $modelObj->pk = $pk;
305. 
    return $modelObj;
306. 
}
- C:\wwwroot\bjzzzd\include\Template.php on line 139
134. 
        }else{$order='';}
135. 
        unset($a['table']);unset($a['molds']);unset($a['orderby']);unset($a['orderway']);unset($a['limit']);unset($a['as']);
136. 
        $pages='';
137. 
        switch($db){
138. 
            case $dbleft.'article':
139. 
140. 
                $fielddb=syDB('fields')->findAll(array('molds'=>'article','lists'=>1),' fieldorder DESC,fid ','fields');
                foreach($fielddb as $v){$fields.=','.$v['fields'];}
141. 
                $field_all='id,tid,sid,title,style,trait,gourl,addtime,hits,htmlurl,htmlfile,litpic,orders,mrank,mgold,isshow,keywords,description,body'.$fields;
142. 
                foreach($a as $k=>$v){
143. 
                    if($k=='tid'){
144. 
                        foreach(explode(',',$v) as $t){
- C:\wwwroot\bjzzzd\include\Template.php on line 80
75. 
            $content=str_ireplace($v,$this->template_html_include(strtolower($i[1][$k])),$content);
76. 
        }
77. 
        preg_match_all('/\{loop (.*?)\}/si',$content,$i);
78. 
        $this->template_err_check(substr_count($content, '{/loop}'),count($i[0]),'loop');
79. 
        foreach($i[0] as $k=>$v){
80. 
81. 
            $content=str_ireplace($v,$this->template_html_loop(strtolower($i[1][$k])),$content);
        }
82. 
        $content=str_ireplace('{/loop}','<?php } ?>',$content);
83. 
        
84. 
        preg_match_all('/\{sql (.*?)\}/si',$content,$i);
85. 
        $this->template_err_check(substr_count($content, '{/sql}'),count($i[0]),'sql');
- C:\wwwroot\bjzzzd\include\Template.php on line 56
51. 
            if(syExt("cache_auto")==1 || !is_readable($template_tpl) || filemtime($tplpath)>filemtime($template_tpl)){
52. 
                if(!is_dir($GLOBALS['G_DY']['view']['config']['template_tpl'].'/'))__mkdirs($GLOBALS['G_DY']['view']['config']['template_tpl'].'/');
53. 
                $fp_tp=@fopen($tplpath,"r");
54. 
                $fp_txt=@fread($fp_tp,filesize($tplpath));
55. 
                @fclose($fp_tp);
56. 
57. 
                $fp_txt=$this->template_html($fp_txt);
                $fpt_tpl=@fopen($template_tpl,"w");
58. 
                @fwrite($fpt_tpl,$fp_txt);
59. 
                @fclose($fpt_tpl);
60. 
                if(is_readable($template_tpl)!==true)$this->template_err('无法找到模板缓存,请刷新后重试,或者检查系统文件夹权限');
61. 
            }
- C:\wwwroot\bjzzzd\include\syView.php on line 28
23. 
    {
24. 
        try {
25. 
                $this->addfuncs();
26. 
                $this->displayed = TRUE;
27. 
                if($GLOBALS['G_DY']['view']['debugging'] && SP_DEBUG)$this->engine->debugging = TRUE;
28. 
29. 
                $this->engine->display($tplname);
        } catch (Exception $e) {
30. 
            syError( $GLOBALS['G_DY']['view']['engine_name']. ' Error: '.$e->getMessage() );
31. 
        }
32. 
    }
33. 
- C:\wwwroot\bjzzzd\include\syController.php on line 30
25. 
26. 
    public function display($tplname, $output = TRUE)
27. 
    {
28. 
        @ob_start();
29. 
        if(TRUE == $GLOBALS['G_DY']['view']['enabled']){
30. 
31. 
            $this->v->display($tplname);
        }else{
32. 
            extract($this->__template_vals);
33. 
            require($tplname);
34. 
        }
35. 
        if( TRUE != $output )return ob_get_clean();
- C:\wwwroot\bjzzzd\source\index.php on line 21
16. 
            if($this->custom['template']!=''){$this->display('custom/'.$this->custom['template']);}else{$this->display("index.html");}
17. 
        }else{
18. 
                    if(is_mobile() || IS_MOBILE){
19. 
                        $this->display("mobile/index.html");
20. 
                    }else{
21. 
22. 
                        $this->display("index.html");
                    }
23. 
        }
24. 
    }
25. 
    function href_session(){
26. 
        exit('true,'.date('Ym'));
- C:\wwwroot\bjzzzd\include\Functions.php on line 18
13. 
    $handle_controller = syClass($__controller, null, $GLOBALS['G_DY']["controller_path"] . '/' . $__controller . ".php");
14. 
    if (!is_object($handle_controller) || !method_exists($handle_controller, $__action)) {
15. 
        syError('route Error');
16. 
        exit;
17. 
    }
18. 
19. 
    $handle_controller->$__action();
    if (FALSE != $GLOBALS['G_DY']['view']['auto_display']) {
20. 
        $__tplname = $__controller . $GLOBALS['G_DY']['view']['auto_display_sep'] .
21. 
                $__action . $GLOBALS['G_DY']['view']['auto_display_suffix'];
22. 
        $handle_controller->auto_display($__tplname);
23. 
    }
- C:\wwwroot\bjzzzd\index.php on line 6
1. 
<?php
2. 
require("config.php");
3. 
$doyoConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$doyoConfig['ext']['view_themes'];
4. 
define("IS_MOBILE", 0);
5. 
require(DOYO_PATH."/sys.php");
6. 
spRun();