Re: [PHP] mktime() question

2002-08-02 Thread Tom Rogers
Hi, Friday, August 2, 2002, 10:52:14 PM, you wrote: JB> Good morning! JB> I need to subtract months by their abbreviated month name, so shouldn't this JB> work? JB> print(date("M", mktime(date("M")-$i)); JB> and if I loop; JB> Aug JB> Jul JB> Jun JB> May JB> Does this help... $now

RE: [PHP] mktime() question - SOLVED

2002-08-02 Thread Jay Blanchard
[snip] I need to subtract months by their abbreviated month name, so shouldn't this work? print(date("M", mktime(date("M")-$i)); and if I loop; Aug Jul Jun May [/snip] Apparently not. But you can subtract by total hours in a given period, so for an average I chose 30 days * 24 hours (

[PHP] mktime() question

2002-08-02 Thread Jay Blanchard
Good morning! I need to subtract months by their abbreviated month name, so shouldn't this work? print(date("M", mktime(date("M")-$i)); and if I loop; Aug Jul Jun May Thanks! Jay What if the hokie pokie really is what it is all about *** *