/    Sign up×
Community /Pin to ProfileBookmark

help with selecting date day by day

hi
Ok, i fried my brain alleredy… so maybe some one can help?
Lets say we have date rande from 1-05-2007 to 18-05-2007, now on each day we have “x” number of visits, so I wanna build the graph to show visits in order for that I need to select each day separatly and count visits for that day. That wouldnt be hard if I could use for($i=1;$i<date(); $i++) but that does not work with date. Also like in VB i could use foreach(date()) but PHP does not suport it unless i have array, so im a bit confused now…

can some one tell me how can i build dates between my range so I would get something like

1-05-2007
2-05-2007
3-05-2007
4-05-2007
5-05-2007
6-05-2007
7-05-2007
8-05-2007
9-05-2007
10-05-2007
11-05-2007
12-05-2007
13-05-2007
14-05-2007
15-05-2007
16-05-2007
17-05-2007
18-05-2007

Thanks for help!

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @alexus spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...