select count(*) as doyo_total_page from t_article where isshow=1 and ( xiangmudiqu=15 )
执行错误: Unknown column 'xiangmudiqu' in 'where clause'

36.          if( $result mysqli_query($this->conn$sql) ){
37.              return $result;
38.          }else{
39.              $err mysqli_error($this->conn);
40.              if($err!=''){
41.                  syError("{$sql}<br />执行错误: " $err);
42.              }else{
43.                  return TRUE;
44.              }
45.          }
46.      }
3.  class db_mysql {
4.      public $conn;
5.      public $arrSql;
6.      public function getArray($sql)
7.      {
8.          if( ! $result $this->exec($sql) )return array();
9.          if( ! mysqli_num_rows($result) )return array();
10.          $rows = array();
11.          while($rows[] = mysqli_fetch_array($resultMYSQLI_ASSOC)){}
12.          mysqli_free_result($result);
13.          array_pop($rows);
119.          return $this->update($conditions, array($field=>$value));
120.      }
121. 
122.      public function findSql($sql)
123.      {
124.          return $this->_db->getArray($sql);
125.      }
126. 
127.      public function runSql($sql)
128.      {
129.          return $this->_db->exec($sql);
590.      }
591.      return $allfields;
592.  }
593.  //统计
594.  function  total_page($sql,$v='doyo_total_page'){
595.      $a=syDB('molds')->findSql('select count(*) as '.$v.' from '.$sql);
596.      return $a[0][$v];
597.  }
598.  //支付平台
599.  function payment($pay){
600.      $payment=syDB('payment')->find(array('pay' => $pay),null,'name');
204.          if($xiangmudiqu){
205.              $w .=" and ( xiangmudiqu="$xiangmudiqu ." ) ";
206.          }
207.          $order=' order by orders desc,addtime desc,id desc';
208.          $sql='select id,tid,title,style,trait,gourl,addtime,hits,litpic,orders,mrank,mgold,isshow,htmlurl,htmlfile,description,user,body from '.$this->db.' a left join '.$this->db.'_field b on (a.id=b.aid)'.$w.$order;
209.          $total_page=total_page($this->db.$w);
210.          $this->lists $this->Class->syPager($this->syArgs('page',0,1),30,$total_page)->findSql($sql);
211.          $pages=$this->Class->syPager()->getPager();
212.          $this->pages=pagetxt($pages);
213.          $list_c=$this->lists;
214.          foreach($list_c as $k=>$v){
11.      $handle_controller syClass($__controllernull$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.      $handle_controller->$__action();
17.      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.      }
1.  <?php
2.  require("config.php");
3.  $doyoConfig['view']['config']['template_dir'] = APP_PATH.'/template/'.$doyoConfig['ext']['view_themes'];
4. 
5.  require(DOYO_PATH."/sys.php");
6.  spRun();