SELECT * FROM th_collection WHERE id = '1646' ORDER BY id LIMIT 1
执行错误: Table 'qblog.th_collection' doesn't exist
- D:\wwwroot\www.iguoguo.net\u\init\Drivers\mysql.php on line 62
57.
{
58.
$this->arrSql[] = $sql;
59.
if( $result = mysql_query($sql, $this->conn) ){
60.
return $result;
61.
}else{
62.
63.
spError("{$sql}<br />执行错误: " . mysql_error());
}
64.
}
65.
66.
/**
67.
* 返回影响行数
- D:\wwwroot\www.iguoguo.net\u\init\Drivers\mysql.php on line 26
21.
*
22.
* @param sql 执行的SQL语句
23.
*/
24.
public function getArray($sql)
25.
{
26.
27.
if( ! $result = $this->exec($sql) )return FALSE;
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);
- D:\wwwroot\www.iguoguo.net\u\init\Core\spModel.php on line 108
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.
109.
return $this->_db->getArray($sql);
}
110.
/**
111.
* 过滤转义字符
112.
*
113.
* @param value 需要进行过滤的值
- D:\wwwroot\www.iguoguo.net\u\init\Core\spModel.php on line 70
65.
* @param sort 排序,等同于“ORDER BY ”
66.
* @param fields 返回的字段范围,默认为返回全部字段的值
67.
*/
68.
public function find($conditions = null, $sort = null, $fields = null)
69.
{
70.
71.
if( $record = $this->findAll($conditions, $sort, $fields, 1) ){
return array_pop($record);
72.
}else{
73.
return FALSE;
74.
}
75.
}
- D:\wwwroot\www.iguoguo.net\u\controller\collection.php on line 139
134.
}
135.
136.
function show(){
137.
$coid = $this->spArgs('coid');
138.
$condition = array("id"=>$coid );
139.
140.
$collection = spClass('db_collection')->find($condition);
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'];
- D:\wwwroot\www.iguoguo.net\u\init\spFunctions.php on line 21
16.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
17.
eval($GLOBALS['G_SP']["dispatcher_error"]);
18.
exit;
19.
}
20.
// 路由并执行用户代码
21.
22.
$handle_controller->$__action();
// 控制器程序运行完毕,进行模板的自动输出
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);
- D:\wwwroot\www.iguoguo.net\u\index.php on line 19
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.
20.
spRun();
?>