سؤال

I have a problem. at the time of my query, I show more than 100 rows and I wonder if anyone can make a page to show me only 25 rows per page

Thanks

هل كانت مفيدة؟

المحلول

I would recommend using ready made solution.

  1. If you can work with jQuery oick one of these plugins
  2. You can also use JQuery DataTable. Check this example
  3. Or you can write a custom solution. This might help

نصائح أخرى

The LIMIT clause can be used to constrain the number of rows returned by the SELECT statement:

SELECT *
FROM `table`
WHERE <conditions>
LIMIT 25 OFFSET <offset>
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top