Panda On Smack
Can't get enough of FH
- Joined
- Dec 22, 2003
- Messages
- 1,030
Hi chaps
Ive got a game which will run between years i.e. start in august and go on into may the following year. What i need to do is have a drop down which is populated by the current week of the game, not year, so a user can choose that week and see how he and everybody else did that week. I store all the scores on a weekly basis in a table. If my game starts in december then by January im roughly in week 5.
I can only thing of doing a calculation on the current week of the year somehow but i cant seem to get it to work both sides of the year.
I use the drop down in a few pages and the start week and end week of the game are declared in an include file so i can change them easily.
Does that make sense? Any ideas would or solutions would be great.
Thanks
Ive got a game which will run between years i.e. start in august and go on into may the following year. What i need to do is have a drop down which is populated by the current week of the game, not year, so a user can choose that week and see how he and everybody else did that week. I store all the scores on a weekly basis in a table. If my game starts in december then by January im roughly in week 5.
I can only thing of doing a calculation on the current week of the year somehow but i cant seem to get it to work both sides of the year.
I use the drop down in a few pages and the start week and end week of the game are declared in an include file so i can change them easily.
Does that make sense? Any ideas would or solutions would be great.
Thanks