DESCRIBE dy_molds
执行错误: 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/Functions.php on line 296
291.
$c=syDB('custom')->find(array('file' => $file));
292.
return $c;
293.
}
294.
//频道信息获取
295.
function moldsinfo($molds,$q){
296.
297.
$m=syDB('molds')->find(array('molds' => $molds),null,$q);
return $m[$q];
298.
}
299.
//内容信息获取
300.
function contentinfo($molds,$id,$q){
301.
$c=syDB($molds)->find(array('id' => $id),null,$q);
- /www/wwwroot/16.oumaikeji.com/doyo/article.php on line 7
2.
if(!defined('APP_PATH')||!defined('DOYO_PATH')){exit('Access Denied');}
3.
class article extends syController
4.
{
5.
function __construct(){
6.
parent::__construct();
7.
8.
$this->moldname=moldsinfo('article','moldname');
$this->sy_class_type=syClass('syclasstype');
9.
$this->Class=syClass('c_article');
10.
$this->db=$GLOBALS['G_DY']['db']['prefix'].'article';
11.
if(!empty($_SESSION['member'])){
12.
$this->member_g=syDB('member_group')->find(array('gid'=>$_SESSION['member']['gid']));
- /www/wwwroot/16.oumaikeji.com/include/Functions.php on line 91
86.
}
87.
}
88.
if(FALSE != $has_define){
89.
$argString = '';$comma = '';
90.
if(null != $args)for ($i = 0; $i < count($args); $i ++) { $argString .= $comma . "\$args[$i]"; $comma = ', ';}
91.
92.
eval("\$GLOBALS['G_DY']['inst_class'][\$class_name]= new \$class_name($argString);");
return $GLOBALS['G_DY']["inst_class"][$class_name];
93.
}
94.
syError($class_name."类定义不存在,请检查。");
95.
}
96.
- /www/wwwroot/16.oumaikeji.com/include/Functions.php on line 7
2.
if(!defined('APP_PATH')||!defined('DOYO_PATH')){exit('Access Denied');}
3.
function spRun(){
4.
GLOBAL $__controller, $__action;
5.
syClass('sysession');
6.
spLaunch("router_prefilter");
7.
8.
$handle_controller = syClass($__controller, null, $GLOBALS['G_DY']["controller_path"].'/'.$__controller.".php");
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
9.
syError('route Error');
10.
exit;
11.
}
12.
$handle_controller->$__action();
- /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();