DESCRIBE lunatic_classtype
执行错误: Lost connection to MySQL server during query
- D:\freehost\cqdysz01kna5fq\web\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.
}
- D:\freehost\cqdysz01kna5fq\web\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);
- D:\freehost\cqdysz01kna5fq\web\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';
- D:\freehost\cqdysz01kna5fq\web\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.
- D:\freehost\cqdysz01kna5fq\web\include\Functions.php on line 466
461.
//fu级栏目tid
462.
function fattid($tid){
463.
$t=syDB('classtype')->find(array('tid' => $tid),null,'pid,tid'); //获取tid,下的pid
464.
if($t['pid']!='0')
465.
{
466.
467.
$t=syDB('classtype')->find(array('tid' => $t['pid']),null,'pid,tid');
}
468.
return $t['tid'];
469.
}
470.
471.
- D:\freehost\cqdysz01kna5fq\web\include\cache\tpl\article_list_image.php on line 193
188.
<tr>
189.
<td align="center" style="background:url(<?php echo $GLOBALS['skin'] ?>images/qyjsbj.jpg);" bgcolor="#C1E6FF" id="qyjs">
190.
<table width="210" class="sideMenu" border="0" cellspacing="1" cellpadding="0" >
191.
<?php
192.
$toptid = toptid($type['tid']);
193.
194.
$fattid = fattid($type['tid']);
//如果栏目指定了其子栏目的某以栏目作为链接,则直接获取其父级tip,否则不变
195.
if($fattid==$toptid){
196.
$fattid = $type['tid'];
197.
}
198.
//echo $toptid;
- D:\freehost\cqdysz01kna5fq\web\include\Template.php on line 66
61.
if( $enable_gzip==1 ){
62.
GLOBAL $__template_compression_level;
63.
$__template_compression_level=syExt('enable_gzip_level');
64.
ob_start('template_ob_gzip');
65.
}
66.
67.
include $template_tpl;
}
68.
69.
private function template_html($content){
70.
preg_match_all('/\{include=\"(.*?)\"\}/si',$content,$i);
71.
foreach($i[0] as $k=>$v){
- D:\freehost\cqdysz01kna5fq\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.
- D:\freehost\cqdysz01kna5fq\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();
- D:\freehost\cqdysz01kna5fq\web\kjweoie\article.php on line 113
108.
$type_pos=$this->sy_class_type->navi($tid);
109.
foreach($type_pos as $v){
110.
$d_pos=syDB('classtype')->find(array('tid'=>$v['tid']),null,'tid,molds,htmldir,htmlfile,mrank');
111.
$this->positions.=' > <a href="'.html_url('classtype',$d_pos).'">'.$v['classname'].'</a>';
112.
}
113.
114.
$this->display('article/'.$t);
}
115.
function hits(){
116.
if($this->syArgs('id')){
117.
syDB('article')->incrField(array('id'=>$this->syArgs('id')), 'hits');
118.
$hits=syDB('article')->find(array('id'=>$this->syArgs('id')),null,'hits');
- D:\freehost\cqdysz01kna5fq\web\include\Functions.php on line 16
11.
$handle_controller = syClass($__controller, null, $GLOBALS['G_DY']["controller_path"].'/'.$__controller.".php");
12.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
13.
syError('route Error');
14.
exit;
15.
}
16.
17.
$handle_controller->$__action();
if(FALSE != $GLOBALS['G_DY']['view']['auto_display']){
18.
$__tplname = $__controller.$GLOBALS['G_DY']['view']['auto_display_sep'].
19.
$__action.$GLOBALS['G_DY']['view']['auto_display_suffix'];
20.
$handle_controller->auto_display($__tplname);
21.
}
- D:\freehost\cqdysz01kna5fq\web\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();