Forum Moderators: coopster
Forgive me if I don't explain this clearly, but I'll try:
Is there a command to get results from a database that would display x amount of items, except the most recent?
For example, let's say I have 5 items in my database. Item 1 is the oldest, 5 is the newest. I want a certain area of my page to display items 4, 3, 2, and 1. Item 5 (the most recent one) is to go to another area of the page. As I input a new item (6, let's say), item 5 would join the other four.
If there is no way of doing that, here is my back-up plan I would hope you would be able to answer: I want the most recent item (item 5) to display more than just the title of the newsitem. The older ones (4, 3, 2, and 1) to display only the titles, so the visitors would click on the titles to read the article.
I hope this makes sense.
Thank you for your help
$query = "SELECT * FROM table ORDER BY date_col ASC LIMIT 1,5";
Good luck!