Hey everyone I could really use some help with this one - I've tried a bunch of things and nothing has worked yet.
I have a database of articles, each with a date. When one article is displayed I need two links, one to go to the next article (a newer date) and one to go to a previous article (an older date). How do I do this?
I tried this query and it didn't work out so well:
SELECT ID FROM entries WHERE userID='46' AND DATE_SUB('$postDateFull',INTERVAL 100 YEAR) < date ORDER BY date DESC LIMIT 1
I wish I could just use something like:
SELECT ID FROM entries WHERE userID='46' AND date < $specifiedDate ORDER BY date DESC LIMIT 1
I'd appreciate any help I can get.
Thanks
Steve