
December 30th, 2012, 01:08 PM
|
|
Contributing User
|
|
Join Date: Jun 2009
Posts: 295
  
Time spent in forums: 3 Days 8 h 35 m 30 sec
Reputation Power: 5
|
|
|
Mostly referenced to view current months bills, but I figured since I'd be storing via a database, then might as well offer history browsing.
I'm thinking, since most bills are exactly the same every month, to create an if/then that will execute first time page is viewed each month to remove all bills from that month the previous year, and create the current months initials bills. This way nothing should overlap, and upon page arrival, the user is always arriving at current month.
One other thing I'd have to figure out would be changing it so January comes AFTER December on the drop-down list so months are accurate in that manner. It won't matter ASC/DESC.
Example: (Current date being August 20, 2013)
September - 2012
October - 2012
November - 2012
December - 2012
January - 2013
February - 2013
March - 2013
April - 2013
May - 2013
June - 2013
July - 2013
August - 2013
I'm hoping it would just be a simple edit in that loop creating the drop-down options. *crosses fingers* ^_^
|