offset after limit
This commit is contained in:
parent
d8c670eaa6
commit
fff8318f1f
@ -363,7 +363,7 @@ class CommentList extends Extension {
|
|||||||
LEFT JOIN users ON comments.owner_id=users.id
|
LEFT JOIN users ON comments.owner_id=users.id
|
||||||
WHERE users.id = :user_id
|
WHERE users.id = :user_id
|
||||||
ORDER BY comments.id DESC
|
ORDER BY comments.id DESC
|
||||||
OFFSET :offset LIMIT :limit
|
LIMIT :limit OFFSET :offset
|
||||||
", array("user_id"=>$user_id, "offset"=>$offset, "limit"=>$count));
|
", array("user_id"=>$user_id, "offset"=>$offset, "limit"=>$count));
|
||||||
$comments = array();
|
$comments = array();
|
||||||
foreach($rows as $row) {
|
foreach($rows as $row) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user