Hello!
I really hope that someone in here can help. Ive googled a whole evening and asked in my local forum, but nobody knows what to do.
First let me say what Ive got:
A MySQL database with a table called articles.
In the table articles i have these fields:
id (autonum), day, month, year, category, title, picurl, text
I have made a form from which I can insert data into these fields, and I group the categories into 5 different categories (lets cal them A,B,C,D and E)
What I want:
I want to pull the data from f.ex only the third last post in the catgory C.
Or the eight last post in the category E.
Or the fifth last post no matter which category.
You see what I want?
I already know that this code will get me the last three post in a category
SELECT * FROM articles WHERE category=´A´ ORDER BY id DESC LIMIT 3
..... or the very last post if using LIMIT 1
But how to get only the sixth (or some other number) last post?