
January 20th, 2013, 01:58 PM
|
 |
*Programmer In Training*
|
|
Join Date: Mar 2005
Location: SE London
Posts: 369
  
Time spent in forums: 1 Week 10 h 26 m 31 sec
Reputation Power: 11
|
|
|
Get last set of records without looping back to record 1
Hi Guys,
Hoepfully a quicky here!
I am working on a site, which requires a table to be screened, then every 10 records to be grabbed, and printed out to the screen.
However, it's the last 10 records I'm having problems with!
Basically I'm doing a simple LIMIT 0,10 - LIMIT 10,10 query and so on, but if I have a table that's 23 records populated, then on the 3rd repitition of the script (unfortunately at the moment it's 3 different querys, not being looped), we are printing the first 3 (rows 20,23), but also the next 7, from record 1 (1,7), I am totally confused, and would love some help, despite easy it might be!
Regards,
Joe.
|