View Single Post
  #2 (permalink)  
Old 11-20-03, 09:21 AM
YourPHPPro's Avatar
YourPHPPro YourPHPPro is offline
Community VIP
 
Join Date: Aug 2003
Posts: 430
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by johno
It works fine but my problem is when results are shown I want to use the pagination feature. Like 10 results per page.
Pass two additional variables - offset and results. 'Offset' will tell you when to start the result and 'page' would tell you how many to retrieve:

Quote:
mysql> SELECT * FROM table LIMIT 5,10; # Retrieve rows 6-15
Reply With Quote