Hi
i need to have code of pagination for my project
can some help me?????/
i want to drive out the information from my database by group number
each group have 30 person ,there for i want to 5 person in each page:rolleyes::rolleyes::rolleyes:
2 replies to this topic
#1
Posted 18 March 2011 - 06:47 AM
|
|
|
#2
Posted 18 March 2011 - 09:15 AM
Moved to the correct forum (this is NOT a tutorial).
It will depend somewhat on your database structure, which type of database you are using for the back-end, etc.
It will depend somewhat on your database structure, which type of database you are using for the back-end, etc.
#3
Posted 18 March 2011 - 01:43 PM
For example a MSSQL page 1 with 10 results would look similar to:
SELECT
x.*
FROM
(
SELECT
*,
ROW_NUMBER() OVER(ORDER BY id DESC) AS rowNumber
FROM
[table]
) AS x
WHERE
x.rowNumber BETWEEN 1 AND 10MySQL looking similar toSELECT * FROM `table` LIMIT 0, 10
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top










