How can I limit the results in a table? [closed]

0

I need to limit the results in a table. They are only names that I show in the table but I want to see 10 results per page. I know I can do a pagination of results, but I would like to know if through the consultation I can limit them or that there is another way to do it other than paging. I just want to show 10 I do not need to see the other paged results because I have a search engine that writes me the results.

    
asked by Alejo Mendoza 29.08.2017 в 01:17
source

1 answer

2

I'm not sure about the database that you use, but when generating the query to the base you can add the limit:

MySQL

SELECT firstname, lastname, email FROM users LIMIT 10

    
answered by 29.08.2017 / 01:22
source