书包cc小说网

SELECT COUNT(id) as sp_counter FROM (select * from s_product where tid = order by id desc) sp_tmp_table_pager1
执行错误: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order by id desc) sp_tmp_table_pager1' at line 1

61.         }else{
62.             spError("{$sql}<br />执行错误: " mysql_error());
63.         }
25.     {
26.         if( ! $result $this->exec($sql) )return array();
27.         if( ! mysql_num_rows($result) )return array();
202.     {
203.         return $this->_db->getArray($sql);
204.     }
446.         if('findSql'==$func_name){
447.             $total_count array_poparray_pop$this->model_obj->findSql("SELECT COUNT({$this->model_obj->pk}) as sp_counter FROM ($conditions) sp_tmp_table_pager1") ) );
448.         }else{
423.         if( ( 'findAll' == $func_name || 'findSql' == $func_name ) && != $this->input_args[0]){
424.             return $this->runpager($func_name$func_args);
425.         }elseif(method_exists($this,$func_name)){
52.             'news' =>spClass('brands')->findSql('select * from s_news order by id desc limit 0,5'),
53.             'List'=>spClass('brands')->spPager($this->spArgs('page'1), 9)->findSql('select * from s_product '.$where' order by id desc'),
54.             'Purl'    => spUrl('home','products',array('r'=>$cname,'page'=>'')),
16.     // 路由并执行用户代码
17.     $handle_controller->$__action();
18.     // 控制器程序运行完毕,进行模板的自动输出
131. # 运行
132. spRun();