diff options
| author | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-03-06 02:36:04 +0000 |
|---|---|---|
| committer | Ludovic Arnaud <ludovic_arnaud@users.sourceforge.net> | 2003-03-06 02:36:04 +0000 |
| commit | 4e503c05089bacf2cf070eebd24d6a358be35510 (patch) | |
| tree | 4bb042e2fad8e5c05bb0a33e8ef480e75b48390a /phpBB/viewtopic.php | |
| parent | 04e9ebb8244c43629652bec3c82ea8f233ba3fae (diff) | |
| download | forums-4e503c05089bacf2cf070eebd24d6a358be35510.tar forums-4e503c05089bacf2cf070eebd24d6a358be35510.tar.gz forums-4e503c05089bacf2cf070eebd24d6a358be35510.tar.bz2 forums-4e503c05089bacf2cf070eebd24d6a358be35510.tar.xz forums-4e503c05089bacf2cf070eebd24d6a358be35510.zip | |
Switched up $total and $offset as per MySQL manual
git-svn-id: file:///svn/phpbb/trunk@3606 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewtopic.php')
| -rw-r--r-- | phpBB/viewtopic.php | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/phpBB/viewtopic.php b/phpBB/viewtopic.php index 0984498974..cf04a62f1a 100644 --- a/phpBB/viewtopic.php +++ b/phpBB/viewtopic.php @@ -447,10 +447,7 @@ $sql = "SELECT u.username, u.user_id, u.user_posts, u.user_from, u.user_karma, u AND u.user_id = p.poster_id ORDER BY $sort_order"; -// 20030226 Ashe: $start first? $offset first? current mysql.php file says that it should be the number of rows -//$result = $db->sql_query_limit($sql, intval($config['posts_per_page']), $start); -$result = $db->sql_query_limit($sql, intval($start), intval($config['posts_per_page'])); - +$result = $db->sql_query_limit($sql, intval($config['posts_per_page']), $start); if ($row = $db->sql_fetchrow($result)) { |
