Hi sorry I thought I understood this until I tried it.
I need to display the table contents in reverse order I am trying to build a <<prev 123 next>> output.
But I cannot make sense of this - this is what I have tried and my outputs
select * from table order by id desc limit 6,5
displays
5
4
3
2
1
Thats perfect
but when u change it to
select * from table order by id desc limit 7,5
displays
4
3
2
1
thats not right
then change limit to 8,5
displays
3
2
1
Now my understanding is that it stops sorting when it get to the offset or first # after limit, so when it gets to row 8 it should display 5 rows desc (descending) my reading is that should be
7
6
5
4
3
but it is display 4-3-2-1
what am I missing, remove the desc and it works but that is not the output that I need
Sorry maybe I'm being stupid I'm tired been working on this for a few days and seem to be going backwards
Thanks for your help it really is appreciated
(Person with little hair scratched away)
DC