select id,tid,sid,title,style,trait,gourl,addtime,record,hits,htmlurl,htmlfile,litpic,orders,price,mrank,mgold,isshow,keywords,description,gjc from dy_product a left join dy_product_field b on (a.id=b.aid) where isshow=1 and trait like '%,4,%' order by orders desc,addtime desc,id desc limit 10
执行错误: Unknown column 'gjc' in 'field list'
- /usr/home/syu8153390001/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/syu8153390001/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/syu8153390001/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/syu8153390001/htdocs/include/cache/tpl/product_product.php on line 211
206.
</div>
207.
<div style=" border-bottom:1px solid #ddd; height:40px;"></div>
208.
<div class="product_newsR">
209.
<span style="background:url(../../../skin/default/images/tj.png) no-repeat;">热点推荐</span>
210.
<ul>
211.
212.
<?php $vn=0;$tablev=syClass("syModel")->findSql("select id,tid,sid,title,style,trait,gourl,addtime,record,hits,htmlurl,htmlfile,litpic,orders,price,mrank,mgold,isshow,keywords,description,gjc from dy_product a left join dy_product_field b on (a.id=b.aid) where isshow=1 and trait like '%,4,%' order by orders desc,addtime desc,id desc limit 10");foreach($tablev as $v){ $v["tid_leafid"]=$sy_class_type->leafid($v["tid"]);$v["n"]=$vn=$vn+1; $v["url"]=html_url("product",$v); $v["title"]=stripslashes($v["title"]); $v["description"]=stripslashes($v["description"]); ?>
<li><A href="<?php echo $v['url'] ?>" title="<?php echo $v['title'] ?>"><?php echo newstr($v['title'],45) ?></A></li>
213.
<?php } ?>
214.
</ul>
215.
</div>
216.
<div class="product_newsR" style="margin-left:20px;">
- /usr/home/syu8153390001/htdocs/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){
- /usr/home/syu8153390001/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/syu8153390001/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/syu8153390001/htdocs/source/product.php on line 73
68.
$this->positions='<a href="'.$GLOBALS["WWW"].'">首页</a>';
69.
foreach($this->sy_class_type->navi($this->product['tid']) as $v){
70.
$d_pos=syDB('classtype')->find(array('tid'=>$v['tid']),null,'tid,molds,htmldir,htmlfile,mrank');
71.
$this->positions.=' > <a href="'.html_url('classtype',$d_pos).'">'.$v['classname'].'</a>';
72.
}
73.
74.
$this->display('product/'.$this->type['t_content']);
}
75.
function type(){
76.
if($this->syArgs('file',1)!=''){
77.
$this->type=syDB('classtype')->find(' htmlfile="'.$this->syArgs('file',1).'" or tid='.$this->syArgs('file').' ');
78.
$tid = $this->type['tid'];
- /usr/home/syu8153390001/htdocs/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.
}
- /usr/home/syu8153390001/htdocs/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();