Forum Moderators: coopster
What i need to do is to find the months (in particular) of all 3 times (past, present and future). Hopefully this explains it best -
<current month>
some data pulled from a database to do with that month
<past months in order>
more data from the database, seperated by months...so..
June
some data
May
more data
April
even more data
etc...
Future months are not shown, but automatically appear when that month..uh..appears? so theres no need to manually update the script. And the current month will then go into the past months, and a new current month takes it place.
Editing the data in the database is not an ideal solution, although it has a date attached to it in the form of 0000-00-00 00:00:00 (year-m-day h:m:s).
Ive looked over the php date functions over at php.net and theres too many to get my head round all at once to decide which ones i need, and how to go about it. At the moment, im thinking all the months in an array, but then i get stuck how to find which one is the current, past etc...especially with differing years.