数据库错误:Got error 28 from storage engineDESCRIBE dy_molds
- /www/wwwroot/m_cqhtbzp_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_cqhtbzp_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_cqhtbzp_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_cqhtbzp_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_cqhtbzp_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_cqhtbzp_com/include/Functions.php on line 458
453.
$c=syDB('custom')->find(array('file' => $file));
454.
return $c;
455.
}
456.
//频道信息获取
457.
function moldsinfo($molds,$q){
458.
459.
$m=syDB('molds')->find(array('molds' => $molds),null,$q);
return $m[$q];
460.
}
461.
//内容信息获取
462.
function contentinfo($molds,$id,$q){
463.
$c=syDB($molds)->find(array('id' => $id),null,$q);
- /www/wwwroot/m_cqhtbzp_com/source/product.php on line 8
3.
class product extends syController
4.
{
5.
function __construct(){
6.
parent::__construct();
7.
$this->molds = 'product';
8.
9.
$this->moldname=moldsinfo('product','moldname');
$this->sy_class_type=syClass('syclasstype');
10.
$this->Class=syClass('c_product');
11.
$this->db=$GLOBALS['G_DY']['db']['prefix'].'product';
12.
$this->classtype=$this->echo_classurl();
13.
}
- /www/wwwroot/m_cqhtbzp_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_cqhtbzp_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_cqhtbzp_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();