select tid,molds,pid,classname,gourl,litpic,blitpic,title,keywords,description,orders,mrank,htmldir,htmlfile,mshow,tedian,advantage from ws_classtype where pid='0' and pid=0 order by orders desc,tid limit 5
执行错误: Unknown column 'tedian' in 'field list'
- /usr/home/qxu1635900135/htdocs/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.
}
- /usr/home/qxu1635900135/htdocs/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);
- /usr/home/qxu1635900135/htdocs/include/syModel.php on line 124
119.
return $this->update($conditions, array($field=>$value));
120.
}
121.
122.
public function findSql($sql)
123.
{
124.
125.
return $this->_db->getArray($sql);
}
126.
127.
public function runSql($sql)
128.
{
129.
return $this->_db->exec($sql);
- /usr/home/qxu1635900135/htdocs/include/cache/tpl/article_article_cases.php on line 33
28.
29.
<nav class="menu">
30.
<ul>
31.
<li class=" <?php if(!$type['tid']){ ?>change<?php } ?>"><a href="/index.php">首页</a>
32.
</li>
33.
34.
<?php $vn=0;$tablev=syClass("syModel")->findSql("select tid,molds,pid,classname,gourl,litpic,blitpic,title,keywords,description,orders,mrank,htmldir,htmlfile,mshow,tedian,advantage from ws_classtype where pid='0' 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); ?>
<li class=" <?php if($type['tid']==$v['tid']||$type['pid']==$v['tid']){ ?>change<?php } ?>">
35.
<a href="<?php echo $v['url'] ?>" title="<?php echo $v['classname'] ?>"><?php echo $v['classname'] ?></a>
36.
37.
<ol>
38.
<?php $v2n=0;$tablev2=syClass("syModel")->findSql("select tid,molds,pid,classname,gourl,litpic,blitpic,title,keywords,description,orders,mrank,htmldir,htmlfile,mshow,tedian,advantage from ws_classtype where pid='".$v[tid]."' order by orders desc,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); ?>
- /usr/home/qxu1635900135/htdocs/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){
- /usr/home/qxu1635900135/htdocs/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.
- /usr/home/qxu1635900135/htdocs/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();
- /usr/home/qxu1635900135/htdocs/source/article.php on line 241
236.
237.
238.
}
239.
240.
241.
242.
$this->display('article/'.$this->type['t_content']);
243.
}
244.
245.
function type(){
246.
- /usr/home/qxu1635900135/htdocs/include/Functions.php on line 31
26.
27.
exit;
28.
29.
}
30.
31.
32.
$handle_controller->$__action();
33.
if(FALSE != $GLOBALS['G_DY']['view']['auto_display']){
34.
35.
$__tplname = $__controller.$GLOBALS['G_DY']['view']['auto_display_sep'].
36.
- /usr/home/qxu1635900135/htdocs/index.php on line 5
1.
<?php
2.
require("config.php");
3.
$WSConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$WSConfig['ext']['view_themes'];
4.
require(WS_PATH."/sys.php");
5.
spRun();