Hey guys,
I'm trying to get my code to display dates for today, yesterday and up to 7 days back in total. I have this code but can only make it go forward 3 days, not back. Any way I can do this?
PHP Code:$currentday = date('d', time());
for ( $i = $currentday; $i < $currentday+3; $i++ ){
$day = date('d', mktime('00', '00', '00', $month, $i, $year));
$date = date('j', mktime('00', '00', '00', $month, $i, $year));
echo "DAY: $date<br><br>";
}




no particular reason, i just don't like the "look" of it.
luckily i've never had to use it.


Bookmarks