I need to select only 20 records from the table and than add pagination to show 5 records per page. i know there is a use of LIMIT in pagination, but first i need to get 20 records and than add pagination to those 20 records
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could select 20 records at one time, and then use array_slice to do pagination.
Edit:
Why there are 2 LIMITS? The limit should be like: