DESCRIBE fengnuo_classtype
执行错误: Query execution was interrupted
- E:\wwwroot\tianqichem_22fqiz\web\include\mysql.php on line 118
113.
$this->arrSql[] = $sql;
114.
if( $result = mysql_query($sql, $this->conn) ){
115.
return $result;
116.
}else{
117.
if(mysql_error()!=''){
118.
119.
syError("{$sql}<br />执行错误: " . mysql_error());
}else{
120.
return TRUE;
121.
}
122.
}
123.
}
- E:\wwwroot\tianqichem_22fqiz\web\include\mysql.php on line 87
82.
class db_mysql {
83.
public $conn;
84.
public $arrSql;
85.
public function getArray($sql)
86.
{
87.
88.
if( ! $result = $this->exec($sql) )return array();
if( ! mysql_num_rows($result) )return array();
89.
$rows = array();
90.
while($rows[] = mysql_fetch_array($result,MYSQL_ASSOC)){}
91.
mysql_free_result($result);
92.
array_pop($rows);
- E:\wwwroot\tianqichem_22fqiz\web\include\mysql.php on line 132
127.
return mysql_affected_rows($this->conn);
128.
}
129.
130.
public function getTable($tbl_name)
131.
{
132.
133.
return $this->getArray("DESCRIBE {$tbl_name}");
}
134.
135.
public function __construct($dbConfig)
136.
{
137.
$linkfunction = ( TRUE == $dbConfig['persistent'] ) ? 'mysql_pconnect' : 'mysql_connect';
- E:\wwwroot\tianqichem_22fqiz\web\include\Functions.php on line 212
207.
208.
function syDB($tbl_name, $pk = null){
209.
$modelObj = syClass("syModel");
210.
$modelObj->tbl_name = (TRUE == $GLOBALS['G_DY']["db_spdb_full_tblname"]) ? $tbl_name : $GLOBALS['G_DY']['db']['prefix'] . $tbl_name;
211.
if( !$pk ){
212.
213.
@list($pk) = $modelObj->_db->getTable($modelObj->tbl_name);$pk = $pk['Field'];
}
214.
$modelObj->pk = $pk;
215.
return $modelObj;
216.
}
217.
- E:\wwwroot\tianqichem_22fqiz\web\include\Functions.php on line 770
765.
$re_url=$sg.$GLOBALS['G_DY']['rewrite']['rewrite_channel_type'];
766.
}else{
767.
$re_url=$sg.$GLOBALS['G_DY']['rewrite']['rewrite_'.$c['molds'].'_type'];
768.
}
769.
if(!empty($c['htmlfile'])) {
770.
771.
$parent = syDB('classtype')->find(" tid = ".intval($c['pid']), null, 'htmlfile, tid');
if(!empty($parent) && $parent['htmlfile'] != $c['htmlfile'] ) {
772.
if(empty($parent['htmlfile'])) {
773.
$re_url = '/'.$c['htmlfile'].'/';
774.
}else {
775.
$re_url = '/'.$parent['htmlfile'].'/'.$c['htmlfile'].'/';
- E:\wwwroot\tianqichem_22fqiz\web\include\cache\tpl\_404.php on line 208
203.
</div>
204.
</div>
205.
</div>
206.
<div class="fnavs">
207.
<div class="container flexJb">
208.
209.
<?php $vn=0;$tablev=syClass("syModel")->syCache(3600)->findSql("select tid,molds,pid,classname,gourl,litpic,litpic2,litpic3,litpic4,title,keywords,description,des,cn_title,orders,mrank,htmldir,htmlfile,mshow,tshow,isindex from fengnuo_classtype where pid='0' and mshow='1' order by orders,tid limit 4");foreach($tablev as $v){ $v["tid_leafid"]=$sy_class_type->leafid($v["tid"]);$v["n"]=$vn=$vn+1; $v["classname"]=stripslashes($v["classname"]);$v["description"]=stripslashes($v["description"]); $v["url"]=html_url("classtype",$v); ?>
<dl>
210.
<dt><a href="<?php echo $v['url'] ?>"><?php echo $v['classname'] ?></a></li>
211.
<?php $v2n=0;$tablev2=syClass("syModel")->syCache(3600)->findSql("select tid,molds,pid,classname,gourl,litpic,litpic2,litpic3,litpic4,title,keywords,description,des,cn_title,orders,mrank,htmldir,htmlfile,mshow,tshow,isindex from fengnuo_classtype where pid='".$v[tid]."' and mshow='1' order by orders,tid ");foreach($tablev2 as $v2){ $v2["tid_leafid"]=$sy_class_type->leafid($v2["tid"]);$v2["n"]=$v2n=$v2n+1; $v2["classname"]=stripslashes($v2["classname"]);$v2["description"]=stripslashes($v2["description"]); $v2["url"]=html_url("classtype",$v2); ?>
212.
<dd><a href="<?php echo $v2['url'] ?>"><?php echo $v2['classname'] ?></a></dd>
213.
<?php } ?>
- E:\wwwroot\tianqichem_22fqiz\web\include\Template.php on line 71
66.
if( $enable_gzip==1 ){
67.
GLOBAL $__template_compression_level;
68.
$__template_compression_level=syExt('enable_gzip_level');
69.
ob_start('template_ob_gzip');
70.
}
71.
72.
include $template_tpl;
}
73.
74.
private function template_html($content){
75.
preg_match_all('/\{include=\"(.*?)\"\}/si',$content,$i);
76.
foreach($i[0] as $k=>$v){
- E:\wwwroot\tianqichem_22fqiz\web\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.
- E:\wwwroot\tianqichem_22fqiz\web\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();
- E:\wwwroot\tianqichem_22fqiz\web\source\article.php on line 120
115.
}
116.
if(empty($this->type['tid'])) {
117.
$tid = 2;
118.
$this->type=syDB('classtype')->find(' tid= '.$tid);
119.
$is404 = true;
120.
121.
$this->display('/404.html');
exit();
122.
}
123.
if($this->type['mrank']>0){
124.
syClass('symember')->p_v($this->type['mrank']);
125.
}
- E:\wwwroot\tianqichem_22fqiz\web\include\Functions.php on line 17
12.
$handle_controller = syClass($__controller, null, $GLOBALS['G_DY']["controller_path"].'/'.$__controller.".php");
13.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
14.
syError('route Error');
15.
exit;
16.
}
17.
18.
$handle_controller->$__action();
if(FALSE != $GLOBALS['G_DY']['view']['auto_display']){
19.
$__tplname = $__controller.$GLOBALS['G_DY']['view']['auto_display_sep'].
20.
$__action.$GLOBALS['G_DY']['view']['auto_display_suffix'];
21.
$handle_controller->auto_display($__tplname);
22.
}
- E:\wwwroot\tianqichem_22fqiz\web\index.php on line 7
2.
require("config.php");
3.
define("APP_PATH",dirname(__FILE__));
4.
define("DOYO_PATH",APP_PATH."/include");
5.
$doyoConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$doyoConfig['ext']['view_themes'];
6.
require(DOYO_PATH."/sys.php");
7.
spRun();