dannybrazil Posted August 26, 2009 Share Posted August 26, 2009 Hello i understand how to retrieve the last entry with DESC and LIMIT 1 but is there any way to get the second to last entry ? not the second AND last, JUST the second to last Danny Link to comment https://forums.phpfreaks.com/topic/171936-solved-retrieve-one-before-the-last-entry/ Share on other sites More sharing options...
asmith Posted August 26, 2009 Share Posted August 26, 2009 Go exactly like DESC and LIMIT 1, but instead of LIMIT 1 do this: LIMIT 1,1 (LIMIT 1 actually is LIMIT 0,1) Link to comment https://forums.phpfreaks.com/topic/171936-solved-retrieve-one-before-the-last-entry/#findComment-906604 Share on other sites More sharing options...
dannybrazil Posted August 26, 2009 Author Share Posted August 26, 2009 Cool thanks i'll try that and let you know Link to comment https://forums.phpfreaks.com/topic/171936-solved-retrieve-one-before-the-last-entry/#findComment-906610 Share on other sites More sharing options...
dannybrazil Posted August 26, 2009 Author Share Posted August 26, 2009 yeap...all good thanks again Link to comment https://forums.phpfreaks.com/topic/171936-solved-retrieve-one-before-the-last-entry/#findComment-906615 Share on other sites More sharing options...
asmith Posted August 26, 2009 Share Posted August 26, 2009 np Please use the Topic Solved button (at the bottom left of the page) if your question is entirely solved. Link to comment https://forums.phpfreaks.com/topic/171936-solved-retrieve-one-before-the-last-entry/#findComment-906623 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.