select count(id) as sp_counter from qf_self where array and visible = 1 
执行错误: unknown column 'array' in 'where clause'
- /home/hljt/domains/hl-jt.com/public_html/en/comm/myframe/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}
执行错误: " . mysql_error());
        }
64. 
    }
65. 
    
66. 
    /**
67. 
     * 返回影响行数
- /home/hljt/domains/hl-jt.com/public_html/en/comm/myframe/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 array();
        if( ! mysql_num_rows($result) )return array();
28. 
        $rows = array();
29. 
        while($rows[] = mysql_fetch_array($result,mysql_assoc)){}
30. 
        mysql_free_result($result);
31. 
        array_pop($rows);
- /home/hljt/domains/hl-jt.com/public_html/en/comm/myframe/core/spmodel.php on line 257
 
252. 
            $where = "where ".join(" and ",$join);
253. 
        }else{
254. 
            if(null != $conditions)$where = "where ".$conditions;
255. 
        }
256. 
        $sql = "select count({$this->pk}) as sp_counter from {$this->tbl_name} {$where}";
257. 
258. 
        $result = $this->_db->getarray($sql);
        return $result[0]['sp_counter'];
259. 
    }
260. 
261. 
    /**
262. 
     * 魔术函数,执行模型扩展类的自动加载及使用
- /home/hljt/domains/hl-jt.com/public_html/en/comm/myframe/core/spmodel.php on line 438
 
433. 
        $pagesize = $this->input_args[1];
434. 
        @list($conditions, $sort, $fields ) = $func_args;
435. 
        if('findsql'==$func_name){
436. 
            $total_count = array_pop( array_pop( $this->model_obj->findsql("select count({$this->model_obj->pk}) as sp_counter from ($conditions) sp_tmp_table_pager1") ) );
437. 
        }else{
438. 
439. 
            $total_count = $this->model_obj->findcount($conditions);
        }
440. 
        if($total_count > $pagesize){
441. 
            $total_page = ceil( $total_count / $pagesize );
442. 
            $page = min(intval(max($page, 1)), $total_count); // 对页码进行规范运算
443. 
            $this->pagedata = array(
- /home/hljt/domains/hl-jt.com/public_html/en/comm/myframe/core/spmodel.php on line 413
 
408. 
    /** 
409. 
     * 魔术函数,支持多重函数式使用类的方法
410. 
     */
411. 
    public function __call($func_name, $func_args){
412. 
        if( ( 'findall' == $func_name || 'findsql' == $func_name ) && 0 != $this->input_args[0]){
413. 
414. 
            return $this->runpager($func_name, $func_args);
        }elseif(method_exists($this,$func_name)){
415. 
            return call_user_func_array(array($this, $func_name), $func_args);
416. 
        }else{
417. 
            return call_user_func_array(array($this->model_obj, $func_name), $func_args);
418. 
        }
- /home/hljt/domains/hl-jt.com/public_html/en/action/home.php on line 970
 
965. 
        //页码数
966. 
        $pages = $this->spargs('page', 1);    
967. 
        //每页显示记录数 
968. 
        $pagenum = 6;
969. 
        //列表
970. 
971. 
        $this->list = $obj_self->sppager($pages, $pagenum)->findall($condition_self,'orders desc,id desc'); 
        //分页数据
972. 
        $pager = $obj_self->sppager()->getpager();
973. 
        //导入自定义分页类
974. 
        import('rewritepage.class.php');
975. 
        //实例化分页
- /home/hljt/domains/hl-jt.com/public_html/en/comm/myframe/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);
- /home/hljt/domains/hl-jt.com/public_html/en/index.php on line 18
 
13. 
//加载配置文件
14. 
require(app_path.'/data/config.php');
15. 
//加载框架核心
16. 
require(sp_path.'/speedphp.php');
17. 
//执行应用
18. 
sprun();