Posts: 1,167
Name: Dragos-Valentin
Location: Cluj-Napoca, RO
|
Code:
"SELECT * FROM user ORDER BY id DESC LIMIT " . $p . " , " . $nr
$p is the number of the page.
$nr is the number of members displayed.
with every page you increment $p and multiply it by $nr.
the paging links can be obtained by using:
Code:
"SELECT COUNT(*) FROM user"
you take the result and divide it by $nr (make sure you round the result to a full integer, 3,1 would be 4).
hope you understood and that it helps you.
__________________
.
» Please remember to add to my Talkupation if you enjoyed my post. Thank you :)
.
|