SELECT murl FROM dy_classtype WHERE tid = '3' ORDER BY tid LIMIT 1
执行错误: Unknown column 'murl' in 'field list'
- /www/wwwroot/njncc.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/njncc.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/njncc.com/include/syModel.php on line 55
50.
}else{
51.
$sort = "ORDER BY {$this->pk}";
52.
}
53.
$sql = "SELECT {$fields} FROM {$this->tbl_name} {$where} {$sort}";
54.
if(null != $limit)$sql = $this->_db->setlimit($sql, $limit);
55.
56.
return $this->_db->getArray($sql);
}
57.
58.
public function escape($value)
59.
{
60.
return $this->_db->__val_escape($value);
- /www/wwwroot/njncc.com/include/syModel.php on line 27
22.
if ($this->_db->showtables($value)==0){return TRUE;}else{return FALSE;}
23.
}
24.
25.
public function find($conditions = null, $sort = null, $fields = null)
26.
{
27.
28.
if( $record = $this->findAll($conditions, $sort, $fields, 1) ){
return array_pop($record);
29.
}else{
30.
return FALSE;
31.
}
32.
}
- /www/wwwroot/njncc.com/include/Functions.php on line 443
438.
$t=syDB('classtype')->find(array('tid' => $tid),null,'classname');
439.
return $t['classname'];
440.
}
441.
//栏目信息
442.
function typeinfo($tid,$q){
443.
444.
$t=syDB('classtype')->find(array('tid' => $tid),null,$q);
return $t[$q];
445.
}
446.
//自定义标签
447.
function labelcus($id,$q){
448.
$l=syClass('c_labelcus')->syCache(3600*240)->find(array('id' => $id));
- /www/wwwroot/njncc.com/include/cache/tpl/article_list.php on line 52
47.
<?php //顶级栏目 ?>
48.
<?php $vn=0;$tablev=syClass("syModel")->findSql("select tid,molds,pid,classname,gourl,litpic,title,keywords,description,orders,mrank,htmldir,htmlfile,mshow from dy_classtype where mshow='1' and pid=0 order by orders desc,tid limit 5");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); ?>
49.
50.
<?php //判断是否应用到下级 ?>
51.
<?php
52.
53.
if ( typeinfo($v['tid'],'murl') == 1 ) {
$v['url'] = getChannelSubUrl($v['tid']);
54.
}
55.
?>
56.
<?php //判断是否应用到下级 end ?>
57.
- /www/wwwroot/njncc.com/include/Template.php on line 69
64.
if( $enable_gzip==1 ){
65.
GLOBAL $__template_compression_level;
66.
$__template_compression_level=syExt('enable_gzip_level');
67.
ob_start('template_ob_gzip');
68.
}
69.
70.
include $template_tpl;
}
71.
72.
private function template_html($content){
73.
preg_match_all('/\{include=\"(.*?)\"\}/si',$content,$i);
74.
foreach($i[0] as $k=>$v){
- /www/wwwroot/njncc.com/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.
- /www/wwwroot/njncc.com/include/syController.php on line 31
26.
27.
public function display($tplname, $output = TRUE)
28.
{
29.
@ob_start();
30.
if(TRUE == $GLOBALS['G_DY']['view']['enabled']){
31.
32.
$this->v->display($tplname);
}else{
33.
extract($this->__template_vals);
34.
require($tplname);
35.
}
36.
if( TRUE != $output )return ob_get_clean();
- /www/wwwroot/njncc.com/source/article.php on line 116
111.
$type_pos=$this->sy_class_type->navi($tid);
112.
foreach($type_pos as $v){
113.
$d_pos=syDB('classtype')->find(array('tid'=>$v['tid']),null,'tid,molds,htmldir,htmlfile,mrank');
114.
$this->positions.=' > <a href="'.html_url('classtype',$d_pos).'">'.$v['classname'].'</a>';
115.
}
116.
117.
$this->display('article/'.$t);
}
118.
function hits(){
119.
if($this->syArgs('id')){
120.
syDB('article')->incrField(array('id'=>$this->syArgs('id')), 'hits');
121.
$hits=syDB('article')->find(array('id'=>$this->syArgs('id')),null,'hits');
- /www/wwwroot/njncc.com/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.
}
- /www/wwwroot/njncc.com/index.php on line 14
9.
}
10.
11.
require("config.php");
12.
$doyoConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$doyoConfig['ext']['view_themes'];
13.
require(DOYO_PATH."/sys.php");
14.
spRun();