abhishek2002
asked on
limiting rows
how can i limit rows while getting result from database?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You can also store the start and end rows in variables to be able to produce the paging functions you see everywhere. You pass these variables in the url with strings for next, previous paging
Repost from duplicate question:
Hi abhishek2002,
If you are using MySQL you can write
SELECT * FROM myTable LIMIT 0,10
where 0 is startrow and 10 is number of records you want to return
Read more: http://dev.mysql.com/doc/mysql/en/SELECT.html
//jan
Hi abhishek2002,
If you are using MySQL you can write
SELECT * FROM myTable LIMIT 0,10
where 0 is startrow and 10 is number of records you want to return
Read more: http://dev.mysql.com/doc/mysql/en/SELECT.html
//jan