Vielleicht hilfts schon.
Ausser Du hast in der Anzeige $posts7 und $posts30 verwechselt
Code: Alles auswählen
<td class="row2"><b>'.$posts7.' / '.$posts30.'</b></td>Code: Alles auswählen
<th height="25" class="thTop">New posts 7 / 30</th>Code: Alles auswählen
WHERE post_time <= ".$timespan;Code: Alles auswählen
WHERE post_time >= ".$timespan;Code: Alles auswählen
$current_month = date('m', time() + (date('I') * 3600));
$current_year = date('Y', time() + (date('I') * 3600));
$timespan = mktime(0, 0, 0, $current_month, 1, $current_year, date('I'));Code: Alles auswählen
... WHERE post_time >= " . $timespan;Code: Alles auswählen
$cur_time = time();
$current_day = date('j', $cur_time + (date('I') * 3600));
$current_month = date('m', $cur_time + (date('I') * 3600));
$current_year = date('Y', $cur_time + (date('I') * 3600));
$timespan_till = mktime(0, 0, 0, $current_month, 1, $current_year, date('I'))-1;
$cur_time -= ($current_day + 1) * 86400;
$last_month = date('m', $cur_time + (date('I') * 3600));
$last_year = date('Y', $cur_time + (date('I') * 3600));
$timespan_from = mktime(0, 0, 0, $last_month, 1, $last_year, date('I'));Code: Alles auswählen
... WHERE post_time >= " . $timespan_from . " AND post_time <= " . $timespan_till;Code: Alles auswählen
... WHERE post_time >= " . $timespan_from . " AND post_time <= " . $timespan_till;