Hi everyone,
I tried searching for my particular problem but couldn't find it, so here i go.
I am trying to retrieve (3) results from my database of 21 entires in reverse order.
I tried the following sql statement and it worked just fine:
SELECT entryID, title
FROM tbljournal
ORDER BY entryID
LIMIT 18, 3
It returned:
entryID title
19 test19
20 test20
21 test21
But when I try the following statement, I get what I think is a weird result:
SELECT entryID, title
FROM tbljournal
ORDER BY entryID DESC
LIMIT 18, 3
It returns:
entryID title
3 test3
2 test2
1 test1
When I want it to return 21, 20, 19. I don't understand this - could someone please explain why this is happening and how I can get the results I am looking for?
(and I don't know if it matter, but entryID is the primary key in my table)
Thanks in advance!!