был неправ.
показатели за все года суммируются.
[sql]$statistics = $DB->query('SELECT start_date FROM topics WHERE (tid <> 0) ORDER BY start_date');
...
while ($stats = mysql_fetch_array($statistics))
{
$month = date('F', $stats['start_date']);
if ($month == 'January')
$january++;
else if ($month == 'February')
$february++;
else if ($month == 'March')
$march++;
else if ($month == 'April')
$april++;
...[/sql]
Не очень понимаю зачем нужна именно такая статистика.
Но факт.
|