SELECT * FROM th_collection WHERE id = '104' ORDER BY id LIMIT 1
执行错误: Table 'qblog.th_collection' doesn't exist

57.      {
58.          $this->arrSql[] = $sql;
59.          if( $result mysql_query($sql$this->conn) ){
60.              return $result;
61.          }else{
62.              spError("{$sql}<br />执行错误: " mysql_error());
63.          }
64.      }
65.      
66.      /**
67.       返回影响行数
21.       
22.       * @param sql  执行的SQL语句
23.       */
24.      public function getArray($sql)
25.      {
26.          if( ! $result $this->exec($sql) )return FALSE;
27.          if( ! mysql_num_rows($result) )return FALSE;
28.          $rows = array();
29.          while($rows[] = mysql_fetch_array($result,MYSQL_ASSOC)){}
30.          mysql_free_result($result);
31.          array_pop($rows);
103.          }else if (null != $this->pk){
104.              $sort "ORDER BY {$this->pk}";
105.          }
106.          $sql "SELECT {$fields} FROM {$this->tbl_name} {$where} {$sort}";
107.          if(null != $limit)$sql $this->_db->setlimit($sql$limit);
108.          return $this->_db->getArray($sql);
109.      }
110.      /**
111.       过滤转义字符
112.       *
113.       * @param value 需要进行过滤的值
65.       * @param sort    排序,等同于“ORDER BY ”
66.       * @param fields    返回的字段范围,默认为返回全部字段的值
67.       */
68.      public function find($conditions null$sort null$fields null)
69.      {
70.          if( $record $this->findAll($conditions$sort$fields1) ){
71.              return array_pop($record);
72.          }else{
73.              return FALSE;
74.          }
75.      }
134.      }
135. 
136.      function show(){
137.          $coid $this->spArgs('coid');
138.          $condition = array("id"=>$coid );
139.          $collection spClass('db_collection')->find($condition);
140.          if(is_array($collection)){
141.              if($collection['uid']!=$_SESSION['uid']&&$collection['private']==1){exit('这是个私有专辑,你没有权限访问哦');}
142.              $collects spClass('db_collect')->spLinker()->spPager($this->spArgs('page',1),20)->findAll(array("coid"=>$coid),'time desc');
143.              $this->collection $collection;
144.              $this->cover $collection['cover'];
16.      if(!is_object($handle_controller) || !method_exists($handle_controller$__action)){
17.          eval($GLOBALS['G_SP']["dispatcher_error"]);
18.          exit;
19.      }
20.      // 路由并执行用户代码
21.      $handle_controller->$__action();
22.      // 控制器程序运行完毕,进行模板的自动输出
23.      if(FALSE != $GLOBALS['G_SP']['view']['auto_display']){
24.          $__tplname $__controller.$GLOBALS['G_SP']['view']['auto_display_sep'].
25.                  $__action.$GLOBALS['G_SP']['view']['auto_display_suffix']; // 拼装模板路径
26.          $handle_controller->auto_display($__tplname);
14.  require(SP_PATH."/init.php");
15.  require(SP_PATH."/Extensions/thFunctions.php");
16. 
17.  import(APP_PATH.'/controller/top.php',$auto_search TRUE$auto_error TRUE); //TOP全局控制器 
18.  header("Content-type: text/html; charset=utf-8"); 
19.  spRun();
20.  ?>