Here is my code:
SELECT `date`, title, category, url
FROM cute_news
WHERE category = '4'
ORDER BY `date` DESC
I want to create pages based on the year, e.g. 2010, 2009, 2008, etc. The database saves the date as UNIX_Timestamp. Not sure how to query a recordset with the Year parameter?
WHERE unix_timestamp(YEAR) = '2010' or something???
Thanks in advance. I am puzzled.
source
share