DESCRIBE jieziyuan_classtype
执行错误: MySQL server has gone away
- D:\virtualhost\localuser\wfwz013320\www\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.
}
- D:\virtualhost\localuser\wfwz013320\www\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);
- D:\virtualhost\localuser\wfwz013320\www\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';
- D:\virtualhost\localuser\wfwz013320\www\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.
- D:\virtualhost\localuser\wfwz013320\www\include\Functions.php on line 786
781.
if($pages!==0)$go_url=pagetxt($pages);
782.
}
783.
//分类类型为转到子分类时判断
784.
if($c['isindex']==4&&!$m)
785.
{
786.
787.
$t=syDB('classtype')->find(array('pid' => $c['tid']),'orders,tid');
if(!empty($t))
788.
{
789.
$go_url=html_url('classtype',$t);
790.
}
791.
}
- D:\virtualhost\localuser\wfwz013320\www\include\cache\tpl\404.php on line 36
31.
<a href="<?php echo $GLOBALS['WWW'] ?>index.php?file=home.html" title="回到首页"><img src="<?php echo returnFirstPhoto(labelcus(2,'body')) ?>" class="od"></a>
32.
</header>
33.
<nav class="wrapper vs">
34.
<ul>
35.
<li class="fl ib home"><a href="<?php echo $GLOBALS['WWW'] ?>index.php?file=home.html" title="网站首页" class="fixpng a ib<?php if(empty($topid)){ ?> active<?php } ?>"<?php if(empty($topid)){ ?> rel="active"<?php } ?>>网站首页</a></li>
36.
37.
<?php $vn=0;$tablev=syClass("syModel")->syCache(3600)->findSql("select tid,molds,pid,classname,gourl,litpic,litpic2,litpic3,litpic4,title,keywords,description,des,en_title,en_seotitle,en_keywords,en_description,orders,mrank,htmldir,htmlfile,mshow,isindex,ru_title,ru_seotitle from jieziyuan_classtype where mshow='1' and pid=0 order by orders,tid limit 12");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); ?>
<li class="fl ib">
38.
<a href="<?php echo $v['url'] ?>" title="<?php echo $v['classname'] ?>" class="a ib<?php if($topid==$v['tid']){ ?> active<?php } ?>"<?php if($topid==$v['tid']){ ?> rel="active"<?php } ?>><?php echo $v['classname'] ?></a>
39.
<dl class="dl">
40.
<?php $v2n=0;$tablev2=syClass("syModel")->syCache(3600)->findSql("select tid,molds,pid,classname,gourl,litpic,litpic2,litpic3,litpic4,title,keywords,description,des,en_title,en_seotitle,en_keywords,en_description,orders,mrank,htmldir,htmlfile,mshow,isindex,ru_title,ru_seotitle from jieziyuan_classtype where mshow='1' and pid='".$v[tid]."' 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); ?>
41.
<dt><a href="<?php echo $v2['url'] ?>" title="<?php echo $v2['classname'] ?>"><?php echo $v2['classname'] ?></a></dt>
- D:\virtualhost\localuser\wfwz013320\www\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){
- D:\virtualhost\localuser\wfwz013320\www\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.
- D:\virtualhost\localuser\wfwz013320\www\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();
- D:\virtualhost\localuser\wfwz013320\www\source\index.php on line 12
7.
$this->sy_class_type=syClass('syclasstype');
8.
}
9.
function index(){
10.
if($this->syArgs('file',1)){
11.
$this->custom=custom_html($this->syArgs('file',1));
12.
13.
if($this->custom['template']!=''){$this->display('custom/'.$this->custom['template']);}else{$this->display("index.html");}
}else{
14.
$this->display("index.html");
15.
}
16.
}
17.
function href_session(){
- D:\virtualhost\localuser\wfwz013320\www\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.
}
- D:\virtualhost\localuser\wfwz013320\www\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();