Hi all,
This is probably going to come real easy to the majority but i need help anyways,
I would like to create a mySQL query that retrieves CD album data via their release date. The query should retrieve all albums but feed the ones with release dates only two weeks old or less into a "new release" array, and those others into another.
This is to seperate new releases from archived data.
I am trying to make the content as automated as possible so that when the release date of an album is two weeks or a month old, it will automatically be archived.
I have been racking my brains with a logical way to do this and stumbled almost instantly by not knowing how to subtract dates (i.e. find out the difference in days from current date) or even getting the dates right in the first place(I'm using DATE type for mySQL field and its stored as YYYY-DD-MM, it'd be easier if it was DD-MM-YYYY tho my text tells me the other format is native to mySQL)
Any help would be greatly appreciated, this is my first big PHP project and would like to see it through!
Thanks
Stuart 🙂