essjay_d12 Posted June 11, 2007 Share Posted June 11, 2007 I am using the following .... select * from house LIMIT 10, 20; yet this produces 13 rows, surely it should only produce 11? thanks d Link to comment https://forums.phpfreaks.com/topic/55086-limit-problem/ Share on other sites More sharing options...
obsidian Posted June 11, 2007 Share Posted June 11, 2007 The way you currently have it, it is starting with row 10 and limiting your results to 20 rows, so it sounds like your table has about 23 records in it. Try either of the following: SELECT * FROM house LIMIT 20, 10; SELECT * FROM house LIMIT 10 OFFSET 20; Link to comment https://forums.phpfreaks.com/topic/55086-limit-problem/#findComment-272295 Share on other sites More sharing options...
fenway Posted June 11, 2007 Share Posted June 11, 2007 I am using the following .... select * from house LIMIT 10, 20; yet this produces 13 rows, surely it should only produce 11? thanks d Actually, it shouldn't produce any more than 10. Link to comment https://forums.phpfreaks.com/topic/55086-limit-problem/#findComment-272421 Share on other sites More sharing options...
unidox Posted June 11, 2007 Share Posted June 11, 2007 SELECT * FROM table LIMIT 10, 20 should work. Unless you have the same id, but i think that is impossible Link to comment https://forums.phpfreaks.com/topic/55086-limit-problem/#findComment-272434 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.