DESCRIBE dy_fields
执行错误: Got error 28 from storage engine
- /www/wwwroot/16.oumaikeji.com/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.
}
- /www/wwwroot/16.oumaikeji.com/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);
- /www/wwwroot/16.oumaikeji.com/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';
- /www/wwwroot/16.oumaikeji.com/include/Functions.php on line 170
165.
166.
function syDB($tbl_name, $pk = null){
167.
$modelObj = syClass("syModel");
168.
$modelObj->tbl_name = (TRUE == $GLOBALS['G_DY']["db_spdb_full_tblname"]) ? $tbl_name : $GLOBALS['G_DY']['db']['prefix'] . $tbl_name;
169.
if( !$pk ){
170.
171.
@list($pk) = $modelObj->_db->getTable($modelObj->tbl_name);$pk = $pk['Field'];
}
172.
$modelObj->pk = $pk;
173.
return $modelObj;
174.
}
175.
- /www/wwwroot/16.oumaikeji.com/include/Template.php on line 132
127.
}else{$order='';}
128.
unset($a['table']);unset($a['orderby']);unset($a['orderway']);unset($a['limit']);unset($a['as']);
129.
$pages='';
130.
switch($db){
131.
case $dbleft.'article':
132.
133.
$fielddb=syDB('fields')->findAll(array('molds'=>'article','lists'=>1),' fieldorder DESC,fid ','fields');
foreach($fielddb as $v){$fields.=','.$v['fields'];}
134.
$field_all='id,tid,sid,title,style,trait,gourl,addtime,hits,htmlurl,htmlfile,litpic,orders,mrank,mgold,isshow,keywords,description'.$fields;
135.
foreach($a as $k=>$v){
136.
if($k=='tid'){
137.
foreach(explode(',',$v) as $t){
- /www/wwwroot/16.oumaikeji.com/include/Template.php on line 75
70.
$content=str_ireplace($v,$this->template_html_include(strtolower($i[1][$k])),$content);
71.
}
72.
preg_match_all('/\{loop (.*?)\}/si',$content,$i);
73.
$this->template_err_check(substr_count($content, '{/loop}'),count($i[0]),'loop');
74.
foreach($i[0] as $k=>$v){
75.
76.
$content=str_ireplace($v,$this->template_html_loop(strtolower($i[1][$k])),$content);
}
77.
$content=str_ireplace('{/loop}','<?php } ?>',$content);
78.
79.
preg_match_all('/\{sql (.*?)\}/si',$content,$i);
80.
$this->template_err_check(substr_count($content, '{/sql}'),count($i[0]),'sql');
- /www/wwwroot/16.oumaikeji.com/include/Template.php on line 52
47.
if(syExt("cache_auto")==1 || !is_readable($template_tpl) || filemtime($tplpath)>filemtime($template_tpl)){
48.
if(!is_dir($GLOBALS['G_DY']['view']['config']['template_tpl'].'/'))__mkdirs($GLOBALS['G_DY']['view']['config']['template_tpl'].'/');
49.
$fp_tp=@fopen($tplpath,"r");
50.
$fp_txt=@fread($fp_tp,filesize($tplpath));
51.
@fclose($fp_tp);
52.
53.
$fp_txt=$this->template_html($fp_txt);
$fpt_tpl=@fopen($template_tpl,"w");
54.
@fwrite($fpt_tpl,$fp_txt);
55.
@fclose($fpt_tpl);
56.
if(!is_file($template_tpl))$this->template_err('无法找到模板缓存,请刷新后重试,或者检查系统文件夹权限');
57.
}
- /www/wwwroot/16.oumaikeji.com/include/syView.php on line 29
24.
25.
try {
26.
$this->addfuncs();
27.
$this->displayed = TRUE;
28.
if($GLOBALS['G_DY']['view']['debugging'] && SP_DEBUG)$this->engine->debugging = TRUE;
29.
30.
$this->engine->display($tplname);
} catch (Exception $e) {
31.
syError( $GLOBALS['G_DY']['view']['engine_name']. ' Error: '.$e->getMessage() );
32.
}
33.
}
34.
- /www/wwwroot/16.oumaikeji.com/include/syController.php on line 34
29.
30.
public function display($tplname, $output = TRUE)
31.
{
32.
@ob_start();
33.
if(TRUE == $GLOBALS['G_DY']['view']['enabled']){
34.
35.
$this->v->display($tplname);
}else{
36.
extract($this->__template_vals);
37.
require($tplname);
38.
}
39.
if( TRUE != $output )return ob_get_clean();
- /www/wwwroot/16.oumaikeji.com/doyo/index.php on line 14
9.
function index(){
10.
if($this->syArgs('file',1)){
11.
$this->custom=custom_html($this->syArgs('file',1));
12.
if($this->custom['template']!=''){$this->display('custom/'.$this->custom['template']);}else{$this->display("index.html");}
13.
}else{
14.
15.
$this->display("index.html");
}
16.
}
17.
18.
}
- /www/wwwroot/16.oumaikeji.com/include/Functions.php on line 12
7.
$handle_controller = syClass($__controller, null, $GLOBALS['G_DY']["controller_path"].'/'.$__controller.".php");
8.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
9.
syError('route Error');
10.
exit;
11.
}
12.
13.
$handle_controller->$__action();
if(FALSE != $GLOBALS['G_DY']['view']['auto_display']){
14.
$__tplname = $__controller.$GLOBALS['G_DY']['view']['auto_display_sep'].
15.
$__action.$GLOBALS['G_DY']['view']['auto_display_suffix'];
16.
$handle_controller->auto_display($__tplname);
17.
}
- /www/wwwroot/16.oumaikeji.com/index.php on line 5
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();