SELECT * FROM sp_goods WHERE is_open = 1 AND pid <> 2 AND id <> 109 ORDER BY rand() LIMIT 0,10
执行错误: Got error 28 from storage engine
- /usr/local/nginx/html/SpeedPHP/Drivers/mysqli.php on line 62
57.
{
58.
$this->arrSql[] = $sql;
59.
if( $result = mysqli_query($this->conn, $sql) ){
60.
return $result;
61.
}else{
62.
63.
spError("{$sql}<br />执行错误: " . mysqli_error($this->conn));
}
64.
}
65.
66.
/**
67.
* 返回影响行数
- /usr/local/nginx/html/SpeedPHP/Drivers/mysqli.php on line 26
21.
*
22.
* @param sql 执行的SQL语句
23.
*/
24.
public function getArray($sql)
25.
{
26.
27.
if( ! $result = $this->exec($sql) )return array();
if( ! mysqli_num_rows($result) )return array();
28.
$rows = array();
29.
while($rows[] = mysqli_fetch_array($result, MYSQLI_ASSOC)){}
30.
mysqli_free_result($result);
31.
array_pop($rows);
- /usr/local/nginx/html/SpeedPHP/Core/spModel.php on line 103
98.
}else{
99.
$sort = "ORDER BY {$this->pk}";
100.
}
101.
$sql = "SELECT {$fields} FROM {$this->tbl_name} {$where} {$sort}";
102.
if(null != $limit)$sql = $this->_db->setlimit($sql, $limit);
103.
104.
return $this->_db->getArray($sql);
}
105.
/**
106.
* 过滤转义字符
107.
*
108.
* @param value 需要进行过滤的值
- /usr/local/nginx/html/controller/index/star.php on line 17
12.
if(!$row){
13.
$this->error(T('pageNotExist'), spUrl('main', 'index'));
14.
}
15.
$row['gallery'] = explode('|',$row['gallery']);
16.
$row['color'] = spClass('goods_attr')->findAll('goods_id='.$pid);
17.
18.
$this->rows = spClass('goods_list')->findAll($addition.'is_open = 1 AND pid <> 2 AND id <> '.$row['id'],'rand()','','0,10');
$this->prevArchive = spClass('goods_list')->find($addition.'is_open=1 AND pid='.$row['pid'].' AND (sort_id <'.$row['sort_id'].' OR (sort_id = '.$row['sort_id'].' AND update_time > '.$row['update_time'].'))', 'sort_id DESC,update_time ASC');
19.
$this->nextArchive = spClass('goods_list')->find($addition.'is_open=1 AND pid='.$row['pid'].' AND (sort_id >'.$row['sort_id'].' OR (sort_id = '.$row['sort_id'].' AND update_time < '.$row['update_time'].'))', 'sort_id ASC,update_time DESC');
20.
$this->row = $row;
21.
if('cn' == $this->getLang()){
22.
$this->display('index/star.html');
- /usr/local/nginx/html/SpeedPHP/spFunctions.php on line 23
18.
if(!is_object($handle_controller) || !method_exists($handle_controller, $__action)){
19.
eval($GLOBALS['G_SP']["dispatcher_error"]);
20.
exit;
21.
}
22.
// 路由并执行用户代码
23.
24.
$handle_controller->$__action();
// 控制器程序运行完毕,进行模板的自动输出
25.
if(FALSE != $GLOBALS['G_SP']['view']['auto_display']){
26.
$__tplname = $__controller.$GLOBALS['G_SP']['view']['auto_display_sep'].
27.
$__action.$GLOBALS['G_SP']['view']['auto_display_suffix']; // 拼装模板路径
28.
$handle_controller->auto_display($__tplname);
- /usr/local/nginx/html/index.php on line 45
40.
// 这里是入口文件全局位置
41.
import(APP_PATH.'/include/index/tpl_func.php');
42.
if(!is_numeric($id)&&$id<>""){
43.
exit('Submit illegal parameter of id!');
44.
}
45.
46.
spRun(); // SpeedPHP 3新特性
if(!is_numeric($id)&&$id<>""){
47.
exit('Submit illegal parameter of id!');
48.
}