Looping with dates.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Todlerone
Forum Commoner
Posts: 96
Joined: Sun Oct 28, 2007 10:20 pm
Location: Hamilton, Ontario, Canada

Looping with dates.

Post by Todlerone »

Hello everyone and thank-you in advance. Can anyone please give me some suggestions on looping between two dates. By this I mean, I will have a start day and an end day approximately five months later. On each pass through the loop I will determine the day of the week which in return will populate my MYSQL database with appropriate data (this I "should" be ok with). I just need some direction in increasing the end of loop "day" by one. There seems to be many date type functions, I'm just curious as to which is best. Thank-you in advance. :D
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Looping with dates.

Post by pickle »

Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply