数据库错误:Got error 28 from storage engineDESCRIBE dy_classtype
- /www/wwwroot/m_ht_jt_com/include/mysql.php on line 85
80.
81.
public function errorMessage()
82.
{
83.
84.
$msg = $this->pdo->errorInfo();
85.
86.
if($msg[2]) syError('数据库错误:' . $msg[2] . end($this->arrSql));
//echo "未知错误!";exit;
87.
}
88.
}
89.
- /www/wwwroot/m_ht_jt_com/include/mysql.php on line 41
36.
$this->arrSql[] = $sql;
37.
$this->Statement = $this->pdo->query($sql);
38.
if ($this->Statement) {
39.
return $this;
40.
//return $this->Statement->execute();
41.
42.
}else $this->errorMessage();
}
43.
44.
public function exec($sql)
45.
{
46.
$this->arrSql[] = $sql;
- /www/wwwroot/m_ht_jt_com/include/mysql.php on line 9
4.
public $pdo;
5.
public $arrSql;
6.
public $Statement;
7.
public function getArray($sql)
8.
{
9.
10.
if(!$result = $this->query($sql))return array();
if(!$this->Statement->rowCount())return array();
11.
$rows = array();
12.
while($rows[] = $this->Statement->fetch(PDO::FETCH_ASSOC)){}
13.
$this->Statement=null;
14.
array_pop($rows);
- /www/wwwroot/m_ht_jt_com/include/mysql.php on line 58
53.
return $this->Statement->rowCount();
54.
}
55.
56.
public function getTable($tbl_name)
57.
{
58.
59.
return $this->getArray("DESCRIBE {$tbl_name}");
}
60.
61.
public function __construct($dbConfig)
62.
{
63.
class_exists('PDO') or exit("not found PDO");
- /www/wwwroot/m_ht_jt_com/include/Functions.php on line 210
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.
211.
@list($pk) = $modelObj->_db->getTable($modelObj->tbl_name);$pk = $pk['Field'];
}
212.
$modelObj->pk = $pk;
213.
return $modelObj;
214.
}
215.
- /www/wwwroot/m_ht_jt_com/source/index.php on line 23
18.
function href_session(){
19.
exit('true,'.date('Ym'));
20.
}
21.
22.
function echo_classurl(){
23.
24.
$list=syDB('classtype')->findAll(null);
$result = array();
25.
26.
foreach($list as $v){
27.
$result[$v["tid"]]["url"] = html_url('classtype',$v);
28.
foreach ($v as $k=>$vv){
- /www/wwwroot/m_ht_jt_com/source/index.php on line 8
3.
class index extends syController
4.
{
5.
function __construct(){
6.
parent::__construct();
7.
$this->sy_class_type=syClass('syclasstype');
8.
9.
$this->classtype=$this->echo_classurl();
}
10.
function index(){
11.
if($this->syArgs('file',1)){
12.
$this->custom=custom_html($this->syArgs('file',1));
13.
if($this->custom['template']!=''){$this->display('custom/'.$this->custom['template']);}else{$this->display("index.html");}
- /www/wwwroot/m_ht_jt_com/include/Functions.php on line 95
90.
}
91.
}
92.
if(FALSE != $has_define){
93.
$argString = '';$comma = '';
94.
if(null != $args)for ($i = 0; $i < count($args); $i ++) { $argString .= $comma . "\$args[$i]"; $comma = ', ';}
95.
96.
eval("\$GLOBALS['G_DY']['inst_class'][\$class_name]= new \$class_name($argString);");
return $GLOBALS['G_DY']["inst_class"][$class_name];
97.
}
98.
syError($class_name."类定义不存在,请检查。");
99.
}
100.
function curl_get($url) {
- /www/wwwroot/m_ht_jt_com/include/Functions.php on line 11
6.
syError('route Error');
7.
exit;
8.
}
9.
syClass('sysession');
10.
spLaunch("router_prefilter");
11.
12.
$handle_controller = syClass($__controller, null, $GLOBALS['G_DY']["controller_path"].'/'.$__controller.".php");
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
13.
syError('route Error');
14.
exit;
15.
}
16.
$handle_controller->$__action();
- /www/wwwroot/m_ht_jt_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();