Hi,

I have this code that list the last 30 days

Code:
for($i=1378080000 ; $i <= time(); $i += 86400) {
	$statsDate = date('Y-m-d', $i);
	echo $statsDate.'<br>';
}
and I tried to reverse it back to put the latest date on top and this is the code

Code:
for($i=time(); $i>=1378080000 ; $i-=86400) {
	$statsDate = date('Y-m-d', $i);
	echo $statsDate.'<br>';
}
however, my problem on the reverse part, it doesnt include yesterday. only the day before yesterday down to the last 29 days.
starting from the the day before yesterday.

I hope you get me right.

What I want is totally the reverse of the first code with the same output. Try the codes and you'll see what i mean.