Trouble with dates
Posted: Mon Sep 26, 2005 6:47 am
Warning - I'm a php newbie!
I'm trying to write a program that tells you what phase of the lunar cycle it is.
I'm totally stuck - how can I get php to assign a (variable) number to today's date and then increase that number by one each day until it gets to 28 and then starts again at 0?
It's either fiendishly difficult or ridiculously simple... I'm too new at this to know which!
Any pointers would be welcomed.
I'm trying to write a program that tells you what phase of the lunar cycle it is.
I'm totally stuck - how can I get php to assign a (variable) number to today's date and then increase that number by one each day until it gets to 28 and then starts again at 0?
It's either fiendishly difficult or ridiculously simple... I'm too new at this to know which!
Any pointers would be welcomed.