160 Star 735 Fork 193

yoby / weui

 / 详情

用底部滚动加载1,数据直接用微擎pdo_fetchall的话,数据就不显示出来了。

Done
Opened this issue  
2020-09-10 10:04
        $list = pdo_fetchall("SELECT *  FROM " . tablename('demo') . " WHERE 1=1  ORDER BY id asc LIMIT " . ($pindex - 1) * $psize . ',' . $psize);
        $total = pdo_getcolumn('demo', array(), "count(*)");
    }
    $arr = [
        'msg' => '请求成功',
        'code' => 200,
        "list" => $list,
        'total' => $total
    ];
    echo json_encode($arr);

然后看了下 好像你的是有个db调用,然后这块是怎么弄的?

Comments (4)

csitian created任务
csitian set related repository to yoby/weui
Expand operation logs

需要注意什么或者 从里面提取什么?

然后红米k20 pro 加载不了数据。

提取的微擎数据库处理类 用$db->fetchall 你说的那是在微擎框架里面的写法

提取的微擎数据库处理类 用$db->fetchall 你说的那是在微擎框架里面的写法

@yoby 好的

yoby changed issue state from 待办的 to 已完成

Sign in to comment

Status
Assignees
Milestones
Pull Requests
Successfully merging a pull request will close this issue.
Branches
Planed to start   -   Planed to end
-
Top level
Priority
参与者(2)
616004 yoby 1578929281
JavaScript
1
https://git.oschina.net/yoby/weui.git
git@git.oschina.net:yoby/weui.git
yoby
weui
weui

Search

182229 41614e54 1850385 182230 7885ed45 1850385