Computer Science Canada next 3 days.. |
Author: | Amailer [ Sat Mar 20, 2004 1:17 pm ] | ||
Post subject: | next 3 days.. | ||
Okay
Since today is saturday, the script above will display something like.. Saturday March 20, 2004 Sunday March 21, 2004 Monday March 22, 2004 Tuesday March 23, 2004 Wednesday March 24, 2004 Thursday March 25, 2004 Friday March 26, 2004 Saturday March 27, 2004 Sunday March 28, 2004 Monday March 29, 2004 Tuesday March 30, 2004 Wednesday March 31, 2004 Thursday April 01, 2004 Friday April 02, 2004 Saturday April 03, 2004 Sunday April 04, 2004 Monday April 05, 2004 Tuesday April 06, 2004 Wednesday April 07, 2004 Thursday April 08, 2004 Friday April 09, 2004 But i don't want it to do that, i want it to display only the next 3 saturdays from today, so i want it to SKIP 7 days so it only displays Saturday March 20, 2004 Saturday March 27, 2004 Saturday April 03, 2004 you know what i mean? |
Author: | Amailer [ Sat Mar 20, 2004 2:17 pm ] | ||
Post subject: | |||
got it that way....:S is there a BETTER way????? |
Author: | PaddyLong [ Sat Mar 20, 2004 2:39 pm ] |
Post subject: | |
in the for loop instead of $i++ have $i+=7 ? |
Author: | Amailer [ Sat Mar 20, 2004 2:43 pm ] |
Post subject: | |
PaddyLong wrote: in the for loop instead of $i++ have $i+=7 ?
..thanks *dies* lol |
Author: | wtd [ Sat Mar 20, 2004 7:45 pm ] | ||
Post subject: | |||
Amailer wrote: PaddyLong wrote: in the for loop instead of $i++ have $i+=7 ?
..thanks *dies* lol Or, you could have your loop do something like:
|