select tid,molds,pid,classname,gourl,litpic,title,keywords,description,orders,mrank,htmldir,htmlfile,mshow,enclassname from dy_classtype wheretid='49'order by orders desc,tid limit 1
执行错误: 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 '='49'order by orders desc,tid limit 1' at line 1

34.          $this->arrSql[] = $sql;
35.          if( $result mysql_query($sql$this->conn) ){
36.              return $result;
37.          }else{
38.              if(mysql_error()!=''){
39.                  syError("{$sql}<br />执行错误: " mysql_error());
40.              }else{
41.                  return TRUE;
42.              }
43.          }
44.      }
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( ! 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);
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);
31. 
32. 
33.  <div class="head-row1"
34.  <div class="head_right" style="float:right; margin-top:12px; font-size:14px; font-family:Georgia, 'Times New Roman', Times, serif;"
35.  <a href="<?php echo disablewords($GLOBALS['WWW']) ?>index.php">中文</a>&nbsp;|&nbsp;
36.  <?php $vn=0;$tablev=syClass("syModel")->findSql("select tid,molds,pid,classname,gourl,litpic,title,keywords,description,orders,mrank,htmldir,htmlfile,mshow,enclassname from dy_classtype wheretid='49'order by orders desc,tid limit 1");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); ?>
37.  <a href="<?php echo disablewords($v['url']) ?>">English</a>
38.  <?php ?>
39. 
40. 
41.  <div id="rowr">
64.          if( $enable_gzip==){
65.              GLOBAL $__template_compression_level;
66.              $__template_compression_level=syExt('enable_gzip_level');
67.              ob_start('template_ob_gzip');
68.          }
69.          include $template_tpl;
70.      }
71.      
72.      private function template_html($content){
73.          preg_match_all('/\{include=\"(.*?)\"\}/si',$content,$i);
74.          foreach($i[0] as $k=>$v){
23.      {
24.          try {
25.                  $this->addfuncs();
26.                  $this->displayed TRUE;
27.                  if($GLOBALS['G_DY']['view']['debugging'] && SP_DEBUG)$this->engine->debugging TRUE;
28.                  $this->engine->display($tplname);
29.          } catch (Exception $e) {
30.              syError$GLOBALS['G_DY']['view']['engine_name']. ' Error: '.$e->getMessage() );
31.          }
32.      }
33. 
25. 
26.      public function display($tplname$output TRUE)
27.      {
28.          @ob_start();
29.          if(TRUE == $GLOBALS['G_DY']['view']['enabled']){
30.              $this->v->display($tplname);
31.          }else{
32.              extract($this->__template_vals);
33.              require($tplname);
34.          }
35.          if( TRUE != $output )return ob_get_clean();
164.              $list_c[$k]['title']=str_ireplace($this->syArgs('word',1),'<b style="color:red;">'.$this->syArgs('word',1).'</b>',$v['title']);
165.              $list_c[$k]['url']=html_url('product',$v);
166.          }        
167.          $this->lists=$list_c;
168.          $this->positions='<a href="'.$GLOBALS["WWW"].'">Home</a>  &gt;  '.'search“'.$this->syArgs('word',1).'”';
169.          $this->display('product/search.html');
170.      }
171.      function chsearch(){
172.          $this->type=array('title'=>'站内搜索','keywords'=>$GLOBALS['S']['keywords'],'description'=>$GLOBALS['S']['description'],'classname'=>'全部',);
173.          $this->type=array_merge($this->type,array('tid_leafid'=>$this->sy_class_type->leafid()));
174.          $w.=" where isshow=1 ";
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();